Skip to content

Option to prematurely end execution of retry and parallel #255

@SaidbekAbdiganiev

Description

@SaidbekAbdiganiev

Currently, there is no way to forcibly terminate execution of retry and parallel functions. This presents a problem in scenarios where:

  • A large number of parameters are provided to parallel, or
  • A high retry count is set for retry

In such cases, we must wait for all iterations to complete, which can lead to unnecessarily long execution times.

The simplest solution that comes to mind is just to use AbortController, but I'm not sure if this is good enough since AbortController tends to be slow in Node (or at least I heard so). Would you like me to open a PR with an implementation of this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions