Skip to main content
Solved

Automatic Execution of Background Jobs After Database Restoration

  • March 19, 2025
  • 1 reply
  • 20 views

Forum|alt.badge.img+3
  • Do Gooder (Employee)
  • 6 replies

A database restoration has been performed on March 11 (Tuesday), 2025. The database was restored to its state as of February 26 (Wednesday), 2025.

It has been observed that a background job, which is scheduled to run on Mondays, was executed on Wednesday, March 12. (But posted on March 11 (Tuesday))

Given that the background job is scheduled to run on Mondays, it did not execute as per its schedule. In such cases, does the job automatically execute as soon as the database is restored and operational?

 

Best answer by sdhalk

Based on the investigation, the following is the answer:

After a database rollback, if the next scheduled execution date of a background job falls in the past (relative to the restored database state), the job automatically executes as soon as the database is restored and operational.

In this case, multiple background jobs were posted around the same time, and some took longer to execute. As a result, the jobs were processed sequentially, leading to the observed delay between the "Posted" state and the actual execution on March 12, 2025.

View original
Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+3
  • Author
  • Do Gooder (Employee)
  • 6 replies
  • Answer
  • March 28, 2025

Based on the investigation, the following is the answer:

After a database rollback, if the next scheduled execution date of a background job falls in the past (relative to the restored database state), the job automatically executes as soon as the database is restored and operational.

In this case, multiple background jobs were posted around the same time, and some took longer to execute. As a result, the jobs were processed sequentially, leading to the observed delay between the "Posted" state and the actual execution on March 12, 2025.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings