Comments (2)
as i just found out
https://stackoverflow.com/a/43066502/574981
cron only has a resolution of 1 minute (there are other tools I think that may have finer resolutions but they are not standard on unix).
i just switched from supercronic to yacron as i like the yaml syntax very much..
and supercronic just supports it..
parse-crontab supports seconds.
as fare as i can tell it would be needed to be added to
- https://github.com/gjcarneiro/yacron/blob/master/yacron/config.py#L229
- https://github.com/gjcarneiro/yacron/blob/master/yacron/config.py#L304
maybe that is already all?!
if so i think i can write a pullrequest for this ;-)
from yacron.
May be a bit more tricky than that. The yacron main loop is a bit more lax:
- Test each job crontab, does it match the current minute? If so, start it
- Calculate how many seconds do we need to sleep until the start of the next minute
- Sleep those seconds
- Go back to step 1.
To support second precision, yacron would need to:
- wake up every second, instead of every minute
- the part "test each job crontab, does it match the current minute" would need to be tweaked:
- some cron jobs are specified with only minute precision, they should not "match" every second in one minute interval, otherwise they would be started 60 times per minute, we don't want that
- only the subset of the jobs that actually specify sub-minute precision should be allowed to test for a match multiple times per minute.
Personally I don't find it useful, but YMMV, and I wouldn't mind reviewing some code to do this.
from yacron.
Related Issues (20)
- LD_LIBRARY_PATH env var is breaking curl commands to HTTPS url HOT 2
- correct way for curl command HOT 2
- executionTimeout and killTimeout not working HOT 1
- /etc/yacron.d is missing HOT 4
- Feature Request: activate / deactivate Jobs HOT 3
- Handling of schedule-entries not clear enough documented HOT 4
- Building yacron pyinstaller on newer python version fail HOT 3
- Propose: permanent tasks HOT 2
- Rollbar Support HOT 2
- A way to test schedules without running them HOT 3
- wish: timestamps for log outputs HOT 5
- Scheduled command failing when running with yacron HOT 1
- Great Jon HOT 1
- yacron not loading the .bashrc file at start HOT 1
- Specifying schedule outside YAML file HOT 1
- End of Support or End of Life dates for version 0.19
- cors HOT 3
- Fails to Send Email: login() got some positional-only arguments passed as keyword arguments: 'username, password' HOT 1
- Web startup message goes to stderr?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yacron.