[GH-ISSUE #1425] [feature request] manage periodic tasks with single (cron) handler #1131

Closed
opened 2026-02-27 11:15:27 +03:00 by kerem · 4 comments
Owner

Originally created by @jficz on GitHub (Mar 5, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1425

It is common practice for web apps to use single task handler that is configured separately and takes care of all delegated tasks that should be run periodically.

Such handler can have multiple entry points - a local cron/systemd-timer script, API call or a simple URL trigger.

This would simplify OS-level configuration reducing number of crontab entries, in case of external triggers (API, URL) to even none if configured properly - with proper configuration root isn't needed and even dovecot can probably be controlled without special privileges (working on a PoC right now :) ).

Originally created by @jficz on GitHub (Mar 5, 2018). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1425 It is common practice for web apps to use single task handler that is configured separately and takes care of all delegated tasks that should be run periodically. Such handler can have multiple entry points - a local cron/systemd-timer script, API call or a simple URL trigger. This would simplify OS-level configuration reducing number of crontab entries, in case of external triggers (API, URL) to even none if configured properly - with proper configuration root isn't needed and even dovecot can probably be controlled without special privileges (working on a PoC right now :) ).
kerem 2026-02-27 11:15:27 +03:00
Author
Owner

@tonioo commented on GitHub (Mar 7, 2018):

@cptMikky Do you have an example of a web app working like this?

<!-- gh-comment-id:371218751 --> @tonioo commented on GitHub (Mar 7, 2018): @cptMikky Do you have an example of a web app working like this?
Author
Owner

@jficz commented on GitHub (Mar 8, 2018):

All of them :) Well, at least pretty much all of which I came around. Off the top of my head: nextCloud, Drupal, Joomla I think, all of the internally developed web apps in my company.

<!-- gh-comment-id:371635732 --> @jficz commented on GitHub (Mar 8, 2018): All of them :) Well, at least pretty much all of which I came around. Off the top of my head: nextCloud, Drupal, Joomla I think, all of the internally developed web apps in my company.
Author
Owner

@tonioo commented on GitHub (Mar 9, 2018):

I guess we could integrate something like https://github.com/tivix/django-cron. A more advanced setup would be to integrate rq with rq-scheduler.

<!-- gh-comment-id:371801394 --> @tonioo commented on GitHub (Mar 9, 2018): I guess we could integrate something like https://github.com/tivix/django-cron. A more advanced setup would be to integrate rq with rq-scheduler.
Author
Owner

@Spitfireap commented on GitHub (Aug 28, 2023):

Modoboa is now migrating to rq ;)

<!-- gh-comment-id:1696401035 --> @Spitfireap commented on GitHub (Aug 28, 2023): Modoboa is now migrating to rq ;)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1131
No description provided.