Script timeout in between
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2023 11:35 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2023 12:31 AM
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.
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2023 02:40 AM
@AnveshKumar M no it's from third party