Skip to content

added extend lease thread capabilities #278

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dorzeidman
Copy link

Changes:

  • added extend_lease_interval property to WorkerInterface.
  • TaskHandler: if extend_lease_interval > 0: a thread will be created that will send every extend_lease_interval seconds a task update call with extendLease = true flag, the task won't be rescheduled by the Conductor unless (extendLease must be lower than responseTimeoutSeconds

Reason:
I need to run long running task (a few hours) and I want to use the extendLease = true feature to have the worker extend lease every few minutes.

@AlonSpitz
Copy link

Hi, that's a valuable feature. what's the status on this PR?

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

Successfully merging this pull request may close these issues.

2 participants