Scheduled Jobs Stuck Running

Follow

Comments

2 comments

    Alternatively some people use the pkId in the row to accomplish the same thing, if you have a pkID.

    UPDATE dbo.tblScheduledItem

    SET IsRunning = 0, Enabled = 0

    WHERE pkID in 'PUT YOUR PKID HERE '

    0
    Comment actions Permalink

    This shouldn't happen if the job is developed correct, it should be "stoppable" and "restartable".

    See https://world.episerver.com/blogs/Sergey-Vorushilo/Dates/2017/12/scheduled-jobs-setup-in-dxc-service/

    "When developing a scheduled job for a site hosted in DXC-S, it is important to define the job as stoppable - set the IsStoppable property to true and implement the Stop method. This will give a chance for your job to perform a graceful shutdown when the web worker instance is recycled during jobs execution. Another important consideration, especially for the long-running jobs and jobs processing massive amounts of data, is to configure the job as Restartable. This will tell the scheduler service to start the job again if the job was shut down during the previous execution. It’s up to the jobs implementation to store some checkpoint to be able to resume the processing when restarted. "

    0
    Comment actions Permalink

Please sign in to leave a comment.