Skip to content

Conversation

@ak-cube
Copy link

@ak-cube ak-cube commented Nov 22, 2024

The function has generated the wrong execution order if processes have the same ID.

@@ -0,0 +1,16 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please exclude this file from the commit

expanded_tasks[task.id] = [expanded_task]
else:
expanded_tasks[task.id].append(expanded_task)
tasks = expanded_tasks
Copy link
Collaborator

Choose a reason for hiding this comment

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

Good catch!

Please add a test case here. This way, we can be 100% sure that the issue is resolved and if someone accidentally breaks it in the future, we will detect it
https://github.com/cubewise-code/rushti/blob/master/tests/tests.py

The function has generated wrong execution order if processes have the same ID
@ak-cube
Copy link
Author

ak-cube commented Dec 1, 2024

Hi! I updated the existing test case as the function "get_ordered_tasks_and_waits" is always executed with the parameter expand=True.

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