django-kronos | Kronos | Cron Utils library
kandi X-RAY | django-kronos Summary
kandi X-RAY | django-kronos Summary
Kronos makes it really easy to define and schedule tasks with cron
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Show registered tasks
- Loads the Cron module
- Install tasks
- Uninstall crontab
- Install and install
- Register decorator
- Process command line arguments
- Print all tasks
- Get the default breadcrumb
django-kronos Key Features
django-kronos Examples and Code Snippets
Community Discussions
Trending Discussions on django-kronos
QUESTION
I am using django-kronos
to create a cron job and it is running fine when I run it manually. But it is not running in case of crontab.
Below is my code to test if it is working:
settings.py
ANSWER
Answered 2020-Apr-10 at 12:27After checking several articles for a few hours and debugging, I found out that the main issue was with the source .env
i was using. crontab was not able to export the environment variables using that command. So, I decided to create another file with the name .env_constants
and update KRONOS_PREFIX
as follows:
settings.py
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install django-kronos
You can use django-kronos like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page