-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
channel updates: make sequential #80
Conversation
a6862fb
to
e70b715
Compare
modules/service-order.nix
Outdated
# | ||
# Given a set of services, make them run one at a time in a specific | ||
# order, on a timer. | ||
{ lib, ... }: |
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.
Any reason to allow additional arguments here?
Since this is an attrset that isn't importable as a module, this doesn't really make sense to me as is. Was this initially started considering it could be implemented as a NixOS module? Could it be made one? Otherwise, would it make make more sense at a location like ../lib
or ./lib
?
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.
+1 that was sloppy of me
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.
Fixed up.
e70b715
to
798deef
Compare
Create a sequential ordering with systemd After-relationships between each channel's update job. Then, remove individual timers and create one timer for all the jobs. Fixes #79
798deef
to
5c3362d
Compare
Deployed! |
Wouldn't it be easier to just have a shell script that runs |
I had considered that, but thought it much nicer to be able to start them individually if we have need to, plus have individual logs and result statuses. Would you prefer I replace this with the simpler approach? |
Yeah you're right, it's nice to have individual control over the units. |
Create a sequential ordering with systemd After-relationships between
each channel's update job. Then, remove individual timers and create
one timer for all the jobs.
Fixes #79