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.py
That 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`
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.py
That 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`
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
devcron-0.2.tar.gz
(3.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
devcron-0.2-py2-none-any.whl
(8.0 kB
view details)
File details
Details for the file devcron-0.2.tar.gz.
File metadata
- Download URL: devcron-0.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
118c3b68d14a96f941c3664ac0b18430c4b94affbbac3189caf0da582a9f10bd
|
|
| MD5 |
b4ad355e8fcb10b278c8c4bc37e30308
|
|
| BLAKE2b-256 |
8da20b1ffd1aad80655a345ecd93d6e07ce5093c2078fdcbd401ee1a23977360
|
File details
Details for the file devcron-0.2-py2-none-any.whl.
File metadata
- Download URL: devcron-0.2-py2-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acd4b89a4ae352b64b84a479878fc274a07c6f6d0f51d556d001ce9322ac1019
|
|
| MD5 |
b1a2c8695d258606cc62ec733b9ec5e2
|
|
| BLAKE2b-256 |
5e9313402a72c444c13524cd058405bbc8ad715b986985191a99605033b837c9
|