Task Scheduling #1461
-
I am trying to get a sensible task scheduling setup, but the current setup seems to be non-intuitive. I am in the UK timezone and struggling to get a schedule which would work correctly and finish early enough in the day so I can catch and correct any issues before going to bed.
It seems that both the cron timing and the private_control_config need to be carefully synchronised - it would seem better to use a single scheduler which takes care of all PST processes and either runs all the time or is kicked off once a day via cron. If someone has a working solution or suggestions for an open source project to look into it would be very helpful. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I would think of the scheduling stuff as a loose guide rather than anything else. In terms of your general problem, why not just start the stack handler mid morning UK time? Or start it manually? That way you can resolve any issues first thing in the morning, instead of late in the evening. I have a vague idea to set up my own instance of PST to be scheduled by Apache Airflow, but of course, have not got around to doing anything about it yet |
Beta Was this translation helpful? Give feedback.
-
That makes sense. I had the multiple adjusted prices update set to go off at 2100. Then, I moved run_systems to 2030 as I wanted it to kick off as soon as possible - but that breaks the logic because the code checks whether the previous process has run within the last 24 hours. The solution I ended up with was to kick of the cronjobs sequentially in the order we need them executed. |
Beta Was this translation helpful? Give feedback.
-
Just to add my 2 cents... I have always thought the previous process logic should be "has the previous process run today?" (i.e., since midnight). I suggested it to Rob once, but he didn't like it because he thinks in terms of a 24-hour cycle rather than a calendar day. I've modified my fork and have been happy using it that way for a long time. Stepping back a bit, I think this is all best managed by external job scheduling software though. |
Beta Was this translation helpful? Give feedback.
run_daily_update_multiple_adjusted_prices
to wait forrun_daily_prices_updates
underprocess_configuration_previous_process
I would think of the scheduling stuff as a loose guide rather than anything else.
In terms of your general problem, why not just start the stack handler mid morning UK time? Or start it manually? That way you can resolve any issues first thing in the morning, instead of late in the evening.
I have a vague idea to set up my own ins…