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

[Feature Request]: Add watchdog / auto kill functionality to "Execute a Process" actions. #4748

Open
usbrandon opened this issue Dec 29, 2024 · 5 comments

Comments

@usbrandon
Copy link
Contributor

What would you like to happen?

Many times when functionality is limited within Hop it is useful to execute a process that carries out the tasks and then returns. Problems arise when the process hangs or never finishes. I would like to request some kind of traditional watchdog timer / parameterization that would automatically kill the process if it takes to long or never occurs so my pipelines and workflows can eventually finish.

Issue Priority

Priority: 3

Issue Component

Component: Transforms

@mattcasters
Copy link
Contributor

I would perhaps make this a general option in the Workflow and Pipeline run configurations.
In case the timeout option is set, a separate thread will be started alongside the Workflow or Pipeline to stop after the given time.

@bamaer
Copy link
Contributor

bamaer commented Jan 6, 2025

if we want to kill pipelines/workflows based on a timeout or other parameters (available disk space etc), we could also look at restart options (nb of retries, wait time between retries).

@mattcasters
Copy link
Contributor

Hi @bamaer. These are great ideas for sure. The Apache Airflow "Retry" task can do these things, and many enterprise schedulers as well. What you usually can't do however, is have the Hop process itself killed if it takes too long to complete. That is what this issue tries to solve.
Doing a re-start of pipelines and workflows, even remembering until where a workflow executed succesfully and restarting from that point, is something that can be done. I wrote something similar for another similar tool many years ago. Perhaps it deserves its own issue.

@usbrandon
Copy link
Contributor Author

usbrandon commented Jan 8, 2025 via email

@rvirgolireply
Copy link

I would perhaps make this a general option in the Workflow and Pipeline run configurations. In case the timeout option is set, a separate thread will be started alongside the Workflow or Pipeline to stop after the given time.

Hey, this would be really appreciated! I was about to open a feature request on this exact topic. Being able to stop a workflow or a pipeline after a given time would be so handy!

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

No branches or pull requests

4 participants