-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crond: add support for crontab file only (on any OS) #289
Conversation
214fe26
to
a24579e
Compare
ef798d5
to
8c6cb4e
Compare
5e8b275
to
8c012bc
Compare
This would also help with #321 as I realised that the crond implementation in |
8c012bc
to
ee54d5c
Compare
Allows to use an external scheduler that supports crontab format the existing crond support using crontab binary remains unchanged for linux
5f6d373
to
47243af
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #289 +/- ##
==========================================
+ Coverage 71.07% 71.51% +0.44%
==========================================
Files 121 121
Lines 12394 12659 +265
==========================================
+ Hits 8809 9053 +244
- Misses 3189 3201 +12
- Partials 396 405 +9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
f4f0095
to
41108f6
Compare
also adds more config options and examples in documentation
41108f6
to
320f368
Compare
Had tested all options manually, think it is ready now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'll try to use it with a non-root user container and see if that helps 👍🏻
Thanks 😉
-- Edit
I re-read the original post that triggered this PR... that's exactly what the OP wanted to do via Supercronic 🤦🏻 🙄
Co-authored-by: Fred <[email protected]>
Yes. Supersonic is one option to have a compatible task scheduler that is OS independent (besides that it needs to run as service) |
The use case with alpine should work as well. Had used busybox’s cron with custom crontab files previously. |
Yes it works when running as root. I'm also tempted to provide another docker image with running resticprofile as a non-privileged user. |
Implements #288
The PR allows to use an external scheduler that supports crontab format and adds the following configuration options:
(this is available on any OS)
The existing
crond
support using thecrontab
binary remains the same but it is now used as fallback when available (crontab
binary is found) andsystemd
is not available.waiting on #259 before implementing remaining tests