Just delay the job until the point in time you need it to be executed.
Thanks @manast. Would you mind providing an example? I’m not sure I follow.
In agenda, I simply call a function called “schedule”.
agenda.schedule(new Date(1530446400), 'printAnalyticsReport');
Would it be job.add(‘printAnalyticsReport’, { delay: 1530446400 })?
You have to substract the current time from the desired time:
const delay = (new Date("2019/10/05") - new Date())
Most helpful comment
You have to substract the current time from the desired time: