Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Make fleetctl stop/unload more helpful #349

Merged
merged 1 commit into from
Apr 18, 2014

Conversation

bcwaldon
Copy link
Contributor

Like load and start, unload and stop should block on success. Additionally, unload should attempt to stop a job before fully unloading it.

@bcwaldon
Copy link
Contributor Author

The multi-state transition should really just be handled by the engine, but it isn't quite smart enough yet to handle that much work. For now, we'll just help the user do it in fleetctl.

@@ -16,6 +18,11 @@ var (
}
)

func init() {
cmdUnloadUnit.Flags.IntVar(&sharedFlags.BlockAttempts, "block-attempts", 10, "Wait until the jobs are loaded, performing up to N attempts before giving up.")
Copy link
Contributor

Choose a reason for hiding this comment

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

unloaded (here and 23)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Didn't even read these comments...

@jonboulle
Copy link
Contributor

Yeah, this is definitely pretty awkward having all this in the client.

@bcwaldon
Copy link
Contributor Author

@jonboulle I'd like to get this implemented here so we can get some functional tests written against the overall behavior, then refactor it out into the engine.

@jonboulle
Copy link
Contributor

👍 for now, and I for one look forward to our new engine overlords.

Like load and start, unload and stop should block on success.
Additionally, unload should attempt to stop a job before
fully unloading it.
bcwaldon added a commit that referenced this pull request Apr 18, 2014
Make fleetctl stop/unload more helpful
@bcwaldon bcwaldon merged commit c5da500 into coreos:master Apr 18, 2014
@bcwaldon bcwaldon deleted the fleetctl-stop-unload branch April 18, 2014 22:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants