Closed kurahaupo closed 1 year ago
so you suggest conversion of seconds to larger units? unfortunately i committed before seeing this but still i dont think its needed in minimal version of awecron. im personally fine with working with calculator a bit but its up to you and your fork as i mentioned already in the pr 7. i think i am done with code tweaking, i would like you to take a look at improvements.
The reverse really; it allows you to specify daily or weekly cycles in your config files, and converts those to seconds.
The current code with the parentheses is a reasonable way to encapsulate each job. It's a reasonable approach to being "minimal".
hi @kurahaupo! I finally came back to this project. I made a new branch called v1 and I am working on all of the improvements there. My current plan is to complete all the rest of to-do's there in the next year and release a full v1.0 awecron version. And actually I think I have addressed all of your concerns and suggestions. So it would be nice if you could take a look at my changes, comment on them, and suggest improvements (I recommend reading commit descriptions). Anyways its up to you. Also if you will make a decision to contribute then please make issues/pull requests feature specific (not general suggestions) so that it will be easier to manage everything. As I previously said I am planning to work on this release for the next year, so I will not be very active.
I am closing this issue as complete, please continue the discussing in new issues/pull requests.
This isn't actually a code bug, more a documentation suggestion; note that this assumes you've applied the
SECONDS
patch I suggested in PR #7.If you want a job to run close to the same time every day, its config file can contain something like this:
or with some algebraic simplification:
or even:
suggestion
As a courtesy, you could provide these definitions in your script:
so that each
config
file can simply write:or
Accommodating DST is left as an exercise for the reader. :-)