Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed: Recursion when the tasks dependencies are wrong #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

IvanAbadzhiev
Copy link

I had a problem when I added on my bad wrong dependencies of the tasks. I started research in the library and I found that the dependencies are point themselves. For that reason, I put a counter to prevent the endless loop in the library.

@Anurag810 Anurag810 self-requested a review April 29, 2019 07:35
const deps = to_process.reduce((acc, curr) => {
// break if the loop is endless
counter++;
if(counter === 1000) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1000 is an arbitrary number. It is not the best way for handling the recursion.
The recursion should be handled by the user it self while creating the task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants