{"repo":"codingjoe/django-crontask","free":true,"listed":false,"github":"https://github.com/codingjoe/django-crontask","clone":"git clone https://github.com/codingjoe/django-crontask.git","description":"Cron style scheduler for Django's task framework","language":"Python","stars":125,"topics":["cron","cronjob","crontab","django","tasks","celery","celerybeat","dramatiq"],"license":"BSD-3-Clause","category":"analytics","readme_excerpt":"Django CronTask Cron style scheduler for asynchronous tasks in Django. - setup recurring tasks via crontab syntax - lightweight helpers build on top of [APScheduler] - [Sentry] cron monitor support Sponsors Setup [!NOTE] Still need a reliable task backend? Check out [Threadmill]! You need to have [Django's Task framework][django-tasks] setup properly. Add crontask to your INSTALLED APPS in settings.py : Finally, you launch the scheduler in a separate process: Setup Redis as a lock backend (optional) If you use Redis as a broker, you can use Redis as a lock backend as well. The lock backend is used to prevent multiple instances of the scheduler from running at the same time. This is important if you have multiple instances of your application running. Usage Advanced Trigger Usage You can also use other trigger types from [APScheduler]. Just import the trigger and use it in the cron decorator. Sentry Cron Monitors If you use [Sentry] suitable tasks will be automatically monitored. The monitor's slug will be the actor's name. Like my task in the example above. Certain triggers are not supported by Sentry as well as sub-minute intervals. In these cases, no monitor will be created and no telemetry will be sent. Pass a custom config via sentry monitor config or set it to None to disable Sentry monitoring for a single task: The crontask command [apscheduler]: https://apscheduler.readthedocs.io/en/stable/ [django-tasks]: https://docs.djangoproject.com/en/6.0/topics/tasks/ [sentry]: h","default_branch":null,"files":null,"tree":[],"storefront":"/r/codingjoe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/codingjoe/django-crontask/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}