Skip to content

Commit

Permalink
[orion-decision] Fix hanging/non-existing tasks creation
Browse files Browse the repository at this point in the history
  • Loading branch information
yescomply committed Oct 26, 2024
1 parent 6eb25ab commit 4cb0482
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions services/orion-decision/src/orion_decision/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
)

LOG = getLogger(__name__)
LOG.setLevel(level=10)
TEMPLATES = (Path(__file__).parent / "task_templates").resolve()
BUILD_TASK = Template((TEMPLATES / "build.yaml").read_text())
MSYS_TASK = Template((TEMPLATES / "build_msys.yaml").read_text())
Expand Down Expand Up @@ -491,11 +492,11 @@ def create_tasks(self) -> None:
for test in obj.tests:
assert isinstance(test, ToxServiceTest)
# TODO: implement tests for all archs in the future
if (test.image, "amd64") in service_build_tasks and self.services[
if (test.image, arch) in service_build_tasks and self.services[
test.image
].dirty:
dirty_test_dep_tasks.append(
service_build_tasks[(test.image, "amd64")]
service_build_tasks[(test.image, arch)]
)
else:
dirty_test_dep_tasks = []
Expand Down

0 comments on commit 4cb0482

Please sign in to comment.