levant icon indicating copy to clipboard operation
levant copied to clipboard

added in a "monitor" subcommand to monitor jobs to completion

Open dansteen opened this issue 6 years ago • 15 comments

Hi @jrasell,

I've finally managed to circle back around and get this sorted out. I've refactored the monitor function to be its own subcommand as we had discussed. I named it "monitor" (instead of "batch-monitor" or similar) because it can technically be used to monitor services or system jobs as well as batch jobs. I've also updating things to match how you are doing the CLI components.

I opened a new pull request for this since its so radically different from what I had before.

Meant to resolve #77

Thanks!

dansteen avatar Apr 19 '18 03:04 dansteen

@jrasell I fixed the formatting and comment issues.

dansteen avatar Apr 27 '18 19:04 dansteen

I think the check failures are an error in the checks. It seems to say that the MonitorCommand struct is not being used, but it is used in the commands.go file. Am I understanding that incorrectly?

dansteen avatar Apr 29 '18 03:04 dansteen

@dansteen the check is pointing the the args field not being used within the MonitorCommand struct.

jrasell avatar Apr 30 '18 08:04 jrasell

@jrasell ok. fixed up the args issue, and also fixed up things to use new logging stuff.

dansteen avatar May 03 '18 19:05 dansteen

thanks @dansteen; I am going to push out a release and then get this in to 0.2.0 if that is OK for you?

jrasell avatar May 10 '18 14:05 jrasell

sure!

dansteen avatar May 10 '18 16:05 dansteen

@jrasell any chance of getting this in for the 0.2.0 that is being worked on now?

dansteen avatar Jun 20 '18 15:06 dansteen

yes sorry my bad; I have been a bit slack the past few weeks. are you able to resolve the conflict and I will get it in today

jrasell avatar Jun 20 '18 15:06 jrasell

pretty sure it's just our conversation above from the 26th. I don't think there are any actual conflicts.

dansteen avatar Jun 20 '18 15:06 dansteen

the conflict as in the merge conflict; if not I will fix it up when I have a moment later/tomorrow morning

jrasell avatar Jun 20 '18 17:06 jrasell

This seems pretty great and our team could definitely use this -- we're shipping database migrations prior to deploying new code and would love levant to verify that the tasks completed correctly or exit non-zero

austinworks avatar Mar 16 '19 19:03 austinworks

If given commit bit, I'd be happy to fix the merge conflicts (and merge once @jrasell gives second approval) :)

josegonzalez avatar Apr 09 '19 08:04 josegonzalez

CLA assistant check
All committers have signed the CLA.

hashicorp-cla avatar Jul 26 '20 21:07 hashicorp-cla

This is very useful feature, @jrasell is there a way to move it forward? Thanks

eugengarkusha avatar Sep 28 '20 16:09 eugengarkusha

@eugengarkusha and @jrasell I signed the CLA just in case that was the only thing holding it back.

dansteen avatar Sep 29 '20 14:09 dansteen