You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see similar question #65 asking for multiple cron jobs, but I would like to know how structure my app to have recurring top level parent cron job, which runs say every 15 mins and extracts time information from a service that returns an array of objects, and using these extracted time information to fire off an array of one time child cron jobs? Much appreciated Thanks
The text was updated successfully, but these errors were encountered:
Can this one off cron job be rescheduled once submitted?
parser.recur().on(date).fullDate();
Say for example if we want to run once, but after submission, be able to be rescheduled again (as many times) before event actually happens so that in the end it is still one time job. If so an example would have thanks
I find it better to do this with reactive session variables so that the cron job can be conditional, this way you do not need to make a overly complicated solution.
For example:
# Booleans to track functionality
eventCompleted = false
processPage = true
processCompleted = false
# Inside cron
if eventCompleted
# do code for if the event has finished
if processPage
while !processCompleted
parsePage()
I see similar question #65 asking for multiple cron jobs, but I would like to know how structure my app to have recurring top level parent cron job, which runs say every 15 mins and extracts time information from a service that returns an array of objects, and using these extracted time information to fire off an array of one time child cron jobs? Much appreciated Thanks
The text was updated successfully, but these errors were encountered: