Skip to content
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

Merged
merged 2 commits into from
Mar 16, 2019

Conversation

grahamc
Copy link
Member

@grahamc grahamc commented Mar 16, 2019

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

@grahamc grahamc force-pushed the fix-79/make-channel-updates-sequential branch from a6862fb to e70b715 Compare March 16, 2019 03:06
#
# Given a set of services, make them run one at a time in a specific
# order, on a timer.
{ lib, ... }:
Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed up.

@grahamc grahamc force-pushed the fix-79/make-channel-updates-sequential branch from e70b715 to 798deef Compare March 16, 2019 03:17
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
@grahamc grahamc force-pushed the fix-79/make-channel-updates-sequential branch from 798deef to 5c3362d Compare March 16, 2019 13:37
@grahamc
Copy link
Member Author

grahamc commented Mar 16, 2019

Deployed!

@grahamc grahamc merged commit cc9bb53 into master Mar 16, 2019
@grahamc grahamc deleted the fix-79/make-channel-updates-sequential branch March 16, 2019 14:57
@edolstra
Copy link
Member

Wouldn't it be easier to just have a shell script that runs mirror-branch in sequence for all supported branches?

@grahamc
Copy link
Member Author

grahamc commented Mar 18, 2019

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?

@edolstra
Copy link
Member

Yeah you're right, it's nice to have individual control over the units.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants