Execute Now button is not executing the code of scheduled job

kamlesh kjmar
Mega Sage
Mega Sage

Hi,

I have written a scheduled job to execute daily at 6 am. After writing the code when I saved it and clicked on execute now button, page refreshes but it do not do anything i.e. script do not executes.

But when I copy the same code and executes it from Background script it works perfectly fine. Any idea why is that ?

 

12 REPLIES 12

Hello Amarjeet,

 

Yes, the issue was with the upgrade. There is a script include that does the compliance check and that script include did not upgraded. The function runContractComplianceCheckJob itself was missing was from the script include ContractManagementUtils

 


runContractComplianceCheckJob : function(){
gs.include("ConditionChecks");
var o = new ConditionChecks();
gs.info(o.checkAll());
}

 

Adding above function in the script include resolved the issue.

Regards,

Kamlesh

 

Hello Amarjeet,

 

I do not remember this issue getting resolved. That was an exceptional case. Are you facing any such issue now ? If yes, please mention your issue in detail with code, may be I can help.

 

Regards,

Kamlesh

i am also facing same issue, execute now is not working and background script is working fine, may i know how can i fix the issue