Skip to content

Task timeout functionallity #869

@ehsanghorbani190

Description

@ehsanghorbani190

I decided to open a separate issue for this problem. A good feature to have is task timeout functionality. The signal option provided has a logical bug, that it applies to tasks that are in queue. But the correct logic is that it applies to the task after it starts to run. That was the nearest thing I found to the task timeout in piscina. Currently, I'm trying something with the messagedChannels to abort the controller of a task when I get a message. But I've got no results so far. I need to make sure that each task in the running phase doesn't take more than 10 seconds. Any ideas on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions