Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Add max_recursion check to task execution. #41

Closed
ghost opened this issue Feb 7, 2013 · 1 comment
Closed

Add max_recursion check to task execution. #41

ghost opened this issue Feb 7, 2013 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 7, 2013

In order to prevent unintentional infinite loops, add a special header / option value called max_recursion_depth and current_depth that gets automatically set and incremented when tasks are inserted.

Inserting an async task from an async should result in the current_depth being incremented by one. There should also be a mechanism to set max_recursion_depth and to reset current_depth, so that users can override the defaults if needed.

If current_depth reaches max_recursion_depth, the task should automatically abort (see enhancement #38).

This was referenced Feb 7, 2013
@ghost
Copy link
Author

ghost commented May 21, 2013

This has been merged to master.

@ghost ghost closed this as completed May 21, 2013
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

0 participants