Skip to content
New issue

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

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

Already on GitHub? # to your account

runservice: fix get tasks to run #93

Merged
merged 1 commit into from
Aug 30, 2019

Conversation

sgotti
Copy link
Member

@sgotti sgotti commented Aug 30, 2019

Currently advanceRunTasks isn't deterministic and doesn't calculate the final
state in one call. So could happen that getTasksToRun will select a task to be
executed since its parent are finished (marked as skipped in advanceRunTasks)
but the task isn't marked to be skipped (because advanceRunTasks has calculated
this task before its parents).

Currently fix this doing the same task selection logic done in advanceRunTasks
and add a TODO to make advanceRunTasks be deterministic by processing tasks by
their level (from level 0).

Currently `advanceRunTasks` isn't deterministic and doesn't calculate the final
state in one call. So could happen that `getTasksToRun` will select a task to be
executed since its parent are finished (marked as skipped in advanceRunTasks)
but the task isn't marked to be skipped (because advanceRunTasks has calculated
this task before its parents).

Currently fix this doing the same task selection logic done in `advanceRunTasks`
and add a TODO to make `advanceRunTasks` be deterministic by processing tasks by
their level (from level 0).
@sgotti sgotti force-pushed the runservice_fix_gettaskstorun branch from e414b58 to bfc42ef Compare August 30, 2019 13:59
@sgotti sgotti merged commit c54d2de into agola-io:master Aug 30, 2019
@sgotti sgotti deleted the runservice_fix_gettaskstorun branch February 19, 2020 09:08
tulliobotti64 pushed a commit to tulliobotti64/agola that referenced this pull request Oct 19, 2022
tulliobotti64 pushed a commit to tulliobotti64/agola that referenced this pull request Oct 19, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant