Background workers RFC #7750
Replies: 3 comments 9 replies
-
Hi, great proposal. Regarding the example API of the BaseJobBackend, I find it curious to have scheduled/repeated tasks defined in terms of cron. I understand that this is how similar functionality is defined in some (many?) other libraries, but I think it's worth considering that not all Wagtail developers will be familiar with the concept of cronjobs and the crontab syntax. From that perspective, this kind of code - In the spirit of making things explicit, I would also suggest you consider only allowing a human readable format for the execution schedule. It seems odd to me to use the crontab syntax when the cron daemon isn't involved at all (unless I've misread the proposal), and where other language constructs - that will also allow for better support in IDEs/editors - exist. Some examples:
I appreciate that the proposal is in the early stages so apologies if I'm putting the horse before the cart :) |
Beta Was this translation helpful? Give feedback.
-
pardon me for the silly questions though, bit unclear about whether we would creating a backend API interface to connect to pre-existing job scheduler modules like celery, rq, huey etc. we would also be creating our own schedulers as well (inspired by other schedulers)? EDIT: as i understand, |
Beta Was this translation helpful? Give feedback.
-
Is this going to be |
Beta Was this translation helpful? Give feedback.
-
Hello fine Wagtail community,
The Wagtail performance sub-team has an RFC about introducing a background workers mechanism into core - wagtail/rfcs#72
The aim is to allow deferring expensive tasks without making assumptions about anyone's setup.
We welcome all feedback
Beta Was this translation helpful? Give feedback.
All reactions