Job Data Map for different job occurences

25 views
Skip to first unread message

fabrice.z...@gmail.com

unread,
Aug 28, 2018, 12:56:29 PM8/28/18
to Quartz.NET
Hello,
I wanted to know if there is a way to have a Job Data Map persisted for each trigger launch.
If I have the same job definition called by a cron trigger at 3 o'clock and the same job definition called at 4 o'clock, is there a way to persist the job data map for each trigger launch ?
It seems to me that there can only be one job data map persisted for one job definition ?

Marko Lahma

unread,
Aug 29, 2018, 1:29:24 AM8/29/18
to Quartz. NET
Both trigger and job have JobDataMap property which both are
persisted. When job executes the IJobExecutionContext.MergedJobDataMap
contains both, trigger keys overriding items brought in by job's map.
You can access trigger specific data via
IJobExecutionContext.Trigger.JobDataMap.

-Marko
> --
> You received this message because you are subscribed to the Google Groups "Quartz.NET" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to quartznet+...@googlegroups.com.
> To post to this group, send email to quar...@googlegroups.com.
> Visit this group at https://groups.google.com/group/quartznet.
> For more options, visit https://groups.google.com/d/optout.

Basil Babu

unread,
Jan 21, 2020, 4:13:30 AM1/21/20
to Quartz.NET
Hi, 

I do have another set of doubts...


if I need to perform 5 different tasks at 5 different times say..

Job1 to send an email that runs daily at 10 am

Job2 to open calculator that runs every Sunday at 1 pm  

Job3 to open an application(console) weekly on  Monday at 2 pm

Job4 to send mails to email id from a field of table in a database on 2nd Monday at 11 pm of every month.


Also is it possible to store the information about a job in quartz itself?(i found something about JOBDATAMAP).


If I need to get the triggering information and job information from the database how it can be implemented?


Thank you....

Reply all
Reply to author
Forward
0 new messages