Batch Job Interrupted
Posted: September 26th, 2022, 2:34 pm
In an older version on EP, I ran into an issue. I'm raising it so someone can check if its an issue on the latest revision
Design Time Revision #: 1647
Run Time Revision #: 520
A batch job was set to repeat every 3 minutes, and when it runs it runs for 30 minutes (it used to run very quickly, but large amount of records increased this).
So the batch job is basically always running. There was a bug that I needed to fix, so I checked it out, tested, and promoted to PD.
Before I promoted the fix to PD and previously I saw the count going up of the running batch job each time I refreshed. After the promotion it stopped. It showed as stopped in the IDE and the history showed it no longer was updating - no increasing of the count, no increase in last updated or duration.
I messaged Steve and he said it was running on the batch job server and was seen in the task manager. He killed it so I could start it again manually from the IDE batch jobs page.
When I checked the logs I found this error:
The process cannot access the file
'C:\EASYProcess51\[tenant name]\PD\Bin\\KRise.EASYProcess.BatchJobs_[tenant name]_PD_[tenant name]_EASYCommerce_ImportItemProductAllocation.exe'
because it is being used by another process.
This was returned every minute from 2022/09/23 13:44:41.1776479
until 2022/09/23 14:05:48.3971928
So the timeline is like this:
2022/09/23 13:44:33 - batch job BRUN-10386691 (the one I interrupted with the PD promotion) last updated successfully
2022/09/23 13:44:41.1776479 - first failure
2022/09/23 14:05:48.3971928 - last failure
Steve killed the exe
2022/09/23 14:06:48 - I started the next one which is running
So even though it was still running, it might not have been doing anything useful.
Once I restarted it, it worked fine
Design Time Revision #: 1647
Run Time Revision #: 520
A batch job was set to repeat every 3 minutes, and when it runs it runs for 30 minutes (it used to run very quickly, but large amount of records increased this).
So the batch job is basically always running. There was a bug that I needed to fix, so I checked it out, tested, and promoted to PD.
Before I promoted the fix to PD and previously I saw the count going up of the running batch job each time I refreshed. After the promotion it stopped. It showed as stopped in the IDE and the history showed it no longer was updating - no increasing of the count, no increase in last updated or duration.
I messaged Steve and he said it was running on the batch job server and was seen in the task manager. He killed it so I could start it again manually from the IDE batch jobs page.
When I checked the logs I found this error:
The process cannot access the file
'C:\EASYProcess51\[tenant name]\PD\Bin\\KRise.EASYProcess.BatchJobs_[tenant name]_PD_[tenant name]_EASYCommerce_ImportItemProductAllocation.exe'
because it is being used by another process.
This was returned every minute from 2022/09/23 13:44:41.1776479
until 2022/09/23 14:05:48.3971928
So the timeline is like this:
2022/09/23 13:44:33 - batch job BRUN-10386691 (the one I interrupted with the PD promotion) last updated successfully
2022/09/23 13:44:41.1776479 - first failure
2022/09/23 14:05:48.3971928 - last failure
Steve killed the exe
2022/09/23 14:06:48 - I started the next one which is running
So even though it was still running, it might not have been doing anything useful.
Once I restarted it, it worked fine