Script timeout in between

Akki1
Tera Contributor

Hello All,

I have a scheduled job where I'm getting the current time and all .... and then I have one post scripted rest api.

From the scheduled job I'm calling scripted rest api and sending some paramters in body.And in scripted rest api I 'm doing a GET call in the script which is getting some data using ODATA and then I'm updating the records in scripted rest api itself in a custom table.

So as the records might be huge I'm doing it in cycles i.e using a do-while loop in scheduled job to get only 700 msgs in one cycle and then next 700 so on....

This worked perfect in dev but in higher environments I observedtime taken to update records is more so to update 700 records this scripted rest api is taking time and it breaks and the due to which the next cycle doesn't happen.

Any suggestion how can I solve this? will using script include instead of scripted rest api solve this? or any other suggestions?

2 REPLIES 2

AnveshKumar M
Tera Sage
Tera Sage

Hi @Akki1 

If the data is in the same instance there is no need for Scripted REST API, you can simply go with ScriptInclude, which will improve the performance for sure.

 

Thanks,
Anvesh

@AnveshKumar M no it's from third party