scheduled job running status
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 02:25 AM
Hi All,
I am running the scheduled job we have 1lakh+ records from the 3rd party to fetch so we are using rest message and calling in scheduled job but the issue is it is taking 3 hours to fetch all the records so it that okay to make schedule to run daily basis/weekly or anything we can do in order to reduce the processing time as i guess it may affect the other scheduled jobs.
only way i am getting is run in weekly basis on weekends
thanks,
Vidyashree

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 02:43 AM
Hi,
The scheduled jobs runs on separate nodes, so in most scenarios a long running job is not ideal, but it will not stop or hinder other jobs from getting processed.
A thing to look into, is if it would be possible to set up some other way of retrieving these records. A data source import might be faster than processing them with REST.
There might be other things you can do to optimize the processing the records, but all that would be guessing at this point since you haven't provided so much detail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 02:51 AM
Hi @OlaN ,
we are getting all open issues from JIRA through API so created a customized table in ServiceNow and puling project wise issues in to our table used below script for it.
as i increment to 50 because we will get 50 issues per result and also we need to loop through total length
and also facing issue like scheduled job is stopping after some time it is running properly