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

hof/flow: can i cancel a running flow? #359

Open
lianggengdino opened this issue Jan 8, 2024 · 3 comments
Open

hof/flow: can i cancel a running flow? #359

lianggengdino opened this issue Jan 8, 2024 · 3 comments

Comments

@lianggengdino
Copy link

Can i cancel a running flow, or pause it?
And, can i get a list, that contain all running flow?

@verdverm
Copy link
Member

You could probably do these things if you write Go to run the hof/flow

I don't think pausing is something that is easily done, you might have to add your own task type or annotation for that

You should be able to cancel with a ctrl-c from the CLI

@verdverm
Copy link
Member

verdverm commented May 4, 2024

Regarding getting a list, the SDK functions should allow for that, as the underlying cue/flow exposes the task list which has a state field

You can probably get at them from: https://github.com/hofstadter-io/hof/blob/_dev/flow/context/context.go#L37

@verdverm
Copy link
Member

verdverm commented Jun 7, 2024

Some additional notes

There are --progress and --stats flags to hof flow that will provide extra information

We are pretty close to being able to see the task list and states, including timing information, what we lack is a way to expose this to something like a GUI via an API. Something like OpenTelemetry might be a better option these days. One could add a middleware to send events off to any API

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

No branches or pull requests

2 participants