Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/taskgraph/util/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ def verify_run_task_caches(task, taskgraph, scratch_pad, graph_config, parameter

main_command = command[0] if isinstance(command[0], str) else ""
run_task = main_command.endswith("run-task")
run_task_hg = main_command.endswith("run-task-hg")

for cache in payload.get("cache", {}).get(
"task-reference", payload.get("cache", {})
Expand All @@ -349,7 +350,7 @@ def verify_run_task_caches(task, taskgraph, scratch_pad, graph_config, parameter
if not RE_RESERVED_CACHES.match(cache):
continue

if not run_task:
if not run_task and not run_task_hg:
raise Exception(
f"{task.label} is using a cache ({cache}) reserved for run-task "
"change the task to use run-task or use a different "
Expand Down
Loading