conductor icon indicating copy to clipboard operation
conductor copied to clipboard

Task never polled by worker and timeout

Open nbraquart opened this issue 8 years ago • 3 comments

Hello,

I would have thought the timeoutSeconds attribute set at task definition level would start from the moment the task goes in SCHEDULED state. However, it appears that the timeout runs from the time task has been changed to IN_PROGRESS status.

Thus, if a task definition has no corresponding worker, or if the worker has stopped polling for any reason, the workflows relying on this task will be stuck forever.

The documentation is clear on this point, so I believe this is expected. I was just wondering what were the rationale behind this? And could we maybe imagine a way to handle the case explained above?

Thanks!

nbraquart avatar Jan 20 '18 10:01 nbraquart

Same problem here

lucas-pinheiro-ipremios avatar Jan 23 '18 17:01 lucas-pinheiro-ipremios

@nbraquart @lucas-pinheiro-ipremios The solution will be to introduce poll timeout. This should be configurable in Task Definition. If the task is not polled within the timeout specified, it would get timed out.

We have plans to implement this not prioritized. Happy to accept a PR if you think you can contribute this.

v1r3n avatar Feb 02 '18 14:02 v1r3n

Hello @apanicker-nflx or @kishorebanala ,

Do you think this issue could be reopened? I am not sure to understand why it was closed by Viren. Or is there another way to track this potential feature?

Thanks!

nbraquart avatar Feb 28 '20 15:02 nbraquart