Try our conversational search powered by Generative AI!

LastExecution of a Scheduled Job

Vote:
 

I have an optimization need in my scheuled job. It extends job base, and everything works fine. It imports prices, and i would like be able to sort out those who are not changed since the job has executed. For this i would need the time when the job executed last. And then check if the created/changed date is bigger than the execution date.

Have anyone done something similar?

#87409
Jun 12, 2014 16:12
Vote:
 

Hi,

We stored DateTime.UtcNow in DDS.

#87414
Edited, Jun 12, 2014 16:51
Vote:
 

Another possibility that does not involve the DDS is to add the execution time to the Job Instance's execution log and then to read back the previous execution time from the log of the previous job instance (with a default value in case it is the first run of the Job).

#87415
Jun 12, 2014 17:23
Vote:
 

Hi,

If you use this guy (https://github.com/valdisiljuconoks/TechFellow.ScheduledJobOverview) - it shows you last execution date and time. Sneak around the code to check how it reads it from job store.

#87461
Jun 12, 2014 23:05
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.