Skip to content

Commit

Permalink
feat: bump max dependencies to 9,999 (#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhearsum authored Sep 20, 2024
1 parent a8508b9 commit 5e8bc7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/taskgraph/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
__version__ = "11.0.0"

# Maximum number of dependencies a single task can have
# https://docs.taskcluster.net/reference/platform/taskcluster-queue/references/api#createTask
# specifies 100, but we also optionally add the decision task id as a dep in
# taskgraph.create, so let's set this to 99.
MAX_DEPENDENCIES = 99
# https://docs.taskcluster.net/docs/reference/platform/queue/api#createTask
# specifies 10000, but we also optionally add the decision task id as a dep in
# taskgraph.create, so let's set this to 9999.
MAX_DEPENDENCIES = 9999

# Enable fast task generation for local debugging
# This is normally switched on via the --fast/-F flag to `mach taskgraph`
Expand Down
4 changes: 2 additions & 2 deletions test/test_transforms_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ def test_treeherder_defaults(run_transform, graph_config, kind, task_def, expect
(
{
"label": "task3",
"dependencies": ["dependency"] * 98,
"dependencies": ["dependency"] * 9998,
"soft-dependencies": ["dependency"] * 1,
"if-dependencies": ["dependency"] * 1,
},
Expand All @@ -749,7 +749,7 @@ def test_treeherder_defaults(run_transform, graph_config, kind, task_def, expect
(
{
"label": "task3",
"dependencies": ["dependency"] * 99,
"dependencies": ["dependency"] * 9999,
"soft-dependencies": ["dependency"],
"if-dependencies": ["dependency"],
},
Expand Down

0 comments on commit 5e8bc7e

Please sign in to comment.