https://github.com/pascalandy/devcron
https://github.com/pascalandy/devcron
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pascalandy/devcron
- Owner: pascalandy
- Created: 2016-12-13T17:16:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-13T17:27:36.000Z (over 8 years ago)
- Last Synced: 2025-02-01T22:16:09.863Z (5 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
https://bitbucket.org/dbenamy/devcron/src
Development cron daemon. Intended as a debugging tool when developing anything
cron based where it would be difficult to use normal cron or when cron runs
must be modified for the dev environment.For example, I have a django project that uses cron to run periodic tasks. The
crontab is in the source tree so it can be managed and deployed with the code.
While doing dev work, I need to run the cron tasks locally and modify the path
of the commands. The crontab looks something like:# devcron delete_str /usr/local/bin/
* * * * * /usr/local/bin/update-stats.py && \
/usr/local/bin/publish-stats.pyThat works normally on the production server and when I'm working, I run:
`devcron.py my-crontab`
and it will run update-stats.py in the working directory (my development tree)
once a minute.You can install with:
`pip install -e hg+https://bitbucket.org/dbenamy/devcron#egg=devcron`