Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scheduling events in a WSGI framework

I've written a Python app that reads a database of tasks, and schedule.enter()s those tasks at various intervals. Each task reschedules itself as it executes.

I'd like to integrate this app with a WSGI framework, so that tasks can be added or deleted in response to HTTP requests. I assume I could use XML-RPC to communicate between the framework process and the task engine, but I'd like to know if there's a framework that has built-in event scheduling which can be modified via HTTP.

like image 914
Drivetrain Software Avatar asked Feb 02 '26 14:02

Drivetrain Software


1 Answers

Sounds like what you really want is something like Celery. It's a Python-based distributed task queue which has various task behaviours including periodic and crontab.

Prior to version 2.0, it had a dependency on Django, but that has now been reduced to an integration plugin.

like image 173
ssokolow Avatar answered Feb 05 '26 05:02

ssokolow



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!