mealpy icon indicating copy to clipboard operation
mealpy copied to clipboard

Scheduler doesn't work

Open ipwnponies opened this issue 5 years ago • 3 comments

The scheduler was disabled during project boilerplate changes.

https://github.com/edmundmok/mealpy/blob/9e60e066a53408057bedba882970c485bf5c516d/mealpy.py#L147-L151

We'll want some way to allow user to run this adhoc or as scheduled task.

ipwnponies avatar Mar 20 '19 17:03 ipwnponies

I briefly tested this and it works with the apscheduler v3.6.0 (should be pinned, #13). This is now blcoked on #4, as we need the CLI swtiches to choose "scheduled" vs. "adhoc" runs.

ipwnponies avatar Mar 28 '19 02:03 ipwnponies

@edmundmok do you think this is a good feature to have? Personally, I would prefer to set up cronjob/windows task instead. This script doesn't run anything concurrently, so apscheduler is essentially an in-process cron scheduler, no additional benefit that I can forsee.

ipwnponies avatar Apr 27 '19 04:04 ipwnponies

I think it would still be good to have a scheduler that works out of the box, so not much configuration is required.

edmundmok avatar Apr 27 '19 05:04 edmundmok