Try our conversational search powered by Generative AI!

Per Nergård
Nov 16, 2016
  2341
(5 votes)

Weird problem with scheduled jobs not running as expected

Two weeks ago I got an email from a customer that some data that was imported via a scheduled job seemed to be missing. So I logged into admin mode and checked the job history. And yes the job hadn't been run as it supposed to.I didn't think that much about it and settled for running it manually and changing the next scheduled date a couple of days ahead.

Since I was 100% sure this would be the end of the problem I didn't verify that the job actually did run on the new date which it didn't.

Hmm strange, and to make things even more strange I could see that other builtin jobs were running perfectly. 

I never found out what the problem were exactly but clearing the scheduld job- and log-table fixed the issue. Thanks to the support for the script.

If you run into this and want to run the script below remember to do a db backup (you never now) and note down how the scheduled jobs are configured so you can reconfigure them after clearing the tables.

ALTER TABLE tblScheduledItemLog NOCHECK CONSTRAINT ALL
ALTER TABLE tblScheduledItemLog CHECK CONSTRAINT ALL

delete [tblScheduledItemLog]
delete [tblScheduledItem]

Nov 16, 2016

Comments

Vincent
Vincent Nov 17, 2016 01:25 AM

So, what's the root cause of this issue? Have you logged support ticket? 

Nov 17, 2016 09:08 AM

Yes I have a support ticket open but haven't got a response as to what can be the root cause. If / when I get that I will update the post.

Please login to comment.
Latest blogs
Why C# Developers Should Embrace Node.js

Explore why C# developers should embrace Node.js especially with Optimizely's SaaS CMS on the horizon. Understand the shift towards agile web...

Andy Blyth | May 2, 2024 | Syndicated blog

Is Optimizely CMS PaaS the Preferred Choice?

As always, it depends. With it's comprehensive and proven support for complex business needs across various deployment scenarios, it fits very well...

Andy Blyth | May 2, 2024 | Syndicated blog

Adding market segment for Customized Commerce 14

Since v.14 of commerce, the old solution  for adding market segment to the url is not working anymore due to techinal changes of .NET Core. There i...

Oskar Zetterberg | May 2, 2024

Blazor components in Optimizely CMS admin/edit interface

Lab: Integrating Blazor Components into Various Aspects of Optimizely CMS admin/edit interface

Ove Lartelius | May 2, 2024 | Syndicated blog