conductor-python icon indicating copy to clipboard operation
conductor-python copied to clipboard

added extend lease thread capabilities

Open dorzeidman opened this issue 10 months ago • 1 comments

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.

dorzeidman avatar Mar 09 '25 19:03 dorzeidman

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

AlonSpitz avatar Mar 18 '25 09:03 AlonSpitz

@v1r3n did you check my pr?

dorz-saymine avatar Nov 21 '25 07:11 dorz-saymine

Hi @dorz-saymine thanks for the PR. We have another PR in progress that should address this. Stay tuned and I can share the branch if you would like to test it out and provide your take/feedback.

v1r3n avatar Nov 21 '25 07:11 v1r3n