agola/internal/services/runservice
Simone Gotti bfc42ef60e runservice: fix get tasks to run
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).
2019-08-30 15:59:25 +02:00
..
action *: export clients and related types 2019-08-02 12:02:01 +02:00
api *: export clients and related types 2019-08-02 12:02:01 +02:00
common *: export clients and related types 2019-08-02 12:02:01 +02:00
readdb *: export clients and related types 2019-08-02 12:02:01 +02:00
store *: export clients and related types 2019-08-02 12:02:01 +02:00
runservice.go *: export clients and related types 2019-08-02 12:02:01 +02:00
scheduler_test.go *: export clients and related types 2019-08-02 12:02:01 +02:00
scheduler.go runservice: fix get tasks to run 2019-08-30 15:59:25 +02:00