Batch Job Interrupted

This forum allows users to post and respond to "How Do I Do ....." questions. The information contained in this forum has not been validated by K-Rise Systems and, as such, K-Rise Systems cannot guarantee the accuracy of the information.
Post Reply
CathyC
Posts: 469
Joined: November 16th, 2021, 11:15 am
Contact:

Batch Job Interrupted

Unread post by CathyC »

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
word count: 334

Tags:
SteveCap
Posts: 327
Joined: August 26th, 2021, 9:18 am
Contact:

Re: Batch Job Interrupted

Unread post by SteveCap »

I've tested this in the current version. BatchJobs that are running continue to run and uses the old build data. They do not seem to be effected.
word count: 28
CathyC
Posts: 469
Joined: November 16th, 2021, 11:15 am
Contact:

Re: Batch Job Interrupted

Unread post by CathyC »

We were testing on platform 3 and saw this issue happen.

When I try to run the batch job from the IDE in the target environment, I get a pop up error
The process cannot access the file 'C:EASYProcess51PlatformQABin\KRise.EASYProcess.BatchJobs_Platform_QA_[tenant]_EASYCommerce_CustomerSpecificCatalogImport.exe' because it is being used by another process.

might be something to look into?
word count: 63
Post Reply