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

Task timeout and Task retries #64

Closed
vsiddu opened this issue Nov 26, 2023 · 5 comments
Closed

Task timeout and Task retries #64

vsiddu opened this issue Nov 26, 2023 · 5 comments

Comments

@vsiddu
Copy link

vsiddu commented Nov 26, 2023

Hi,

Currently trying to use Wexflow for automation of some tasks which runs frequently.
But have few questions with implementing below functionality.Hope anyone can help me.

  1. Timing out running task if it doesnt complete in certain time limit.
  2. Retrying same task if it fails
  3. how to create a lock on a resource, so that only one task work on the resource.

Thank you

@aelassas
Copy link
Owner

Retries are only available in Ftp task. Retries and timeouts are not available in other tasks. For which other tasks do you need retries and timeouts?

Regardings resource locks, can you provide an example so I can understand what you need?

@vsiddu
Copy link
Author

vsiddu commented Nov 27, 2023

Thanks for your reply.
Sorry if I'm not clear on my requirements.
Instead of specific tasks, it would be better, if it is a basic functionality of Task. If a task fails retry it for a certain number of times( default 1). Also same with time out, if a task is not completed within the timeout value(if specified), fail the task.
2. Regarding Locks, what I meant is like locks we use in threads. For example, when a workflow is started, we acquire (create if it does not exist) a lock with a name. if someone else triggers the same workflow, it will try to acquire the same lock, since the lock is already acquired, the second instance of the workflow will wait till the first workflow completes or it will time out

@aelassas
Copy link
Owner

I added these features to the roadmap. I will try to add them later.

@vsiddu
Copy link
Author

vsiddu commented Nov 28, 2023

Great. Thank you.

@aelassas
Copy link
Owner

aelassas commented Dec 9, 2023

@vsiddu I have just released the v7.7 with task retries feature. Now, you can find this feature in the designer for retrying tasks in case of failure. When you create or open a workflow in the designer you will find the options Task Retries and Task Retries Timeout (ms) on the right panel.

For resource lock and task timeout, I will to try to add them later.

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