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

Don't clobber other Galaxies' systemd units when managed by different Gravity config files #83

Merged
merged 3 commits into from Nov 7, 2022

Conversation

natefoo
Copy link
Member

@natefoo natefoo commented Oct 28, 2022

As discussed on #82.

Also, it's worth mentioning that the --force option to update on its own is mostly meaningless since that was necessary for forcing the supervisor configs to update when there were no changes to the configstate, but the configstate is gone and we template the configs every time and update them if there are any differences.

Passing --clean to update will remove any process manager configs for Galaxy instances known to this Gravity.

Passing --clean --force to update will remove all process manager configs regardless of whether they are known to this Gravity (although in the case of supervisor, they probably live in an isolated directory in your Galaxy install).

More specifically, ones that are related to a loaded Gravity config
file. If you need to remove everything, you can use --clean --force.

Related, update --force is obsolete on its own since the thing it
originally did (always write PM configs regardless of whether the
configstate changed) is meaningless now that there's no configstate: the
PM configs are templated every time you run update, and are updated if
they differ from what's on disk.

The supervisor PM should probably switch to the systemd PM's logic here
for --force. Tests for the desired behavior with --force and --update
when multiple configs are used would also be good.
@natefoo natefoo changed the base branch from main to release_1.x October 28, 2022 20:13
@natefoo
Copy link
Member Author

natefoo commented Oct 28, 2022

Ok, I went ahead and restored automatic updating on start, restart, and graceful. Hopefully there's nothing to be concerned about there. If you want to perform restarts without updating you can always invoke the PM directly.

@natefoo natefoo merged commit b5e5e03 into galaxyproject:release_1.x Nov 7, 2022
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.

None yet

1 participant