`taskgraph load-task` should cache docker images

Open
#788 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, python
Domain
cli, devops

Research direction

Start at the taskgraph load-task command and trace the code that downloads and loads image.tar.zst from the Taskcluster artifact URL. Determine the cache location and reuse rules, then verify that a second load-task invocation does not download the image again and still loads it successfully.

Written by the indexing model from the issue text.

Description

Currently, if you run, say taskgraph load-task Ww-q-IvVTfed8xepUhNWaw twice, you'll see:

2025-09-26 15:54:49,487 - INFO - Downloading from https://community-tc.services.mozilla.com/api/queue/v1/task/MUvi2npBRue4VmksTmsdEw/artifacts/public/image.tar.zst
Loaded image: ci:latest

each time in the logs. It would be useful to cache this downloaded image, as some of these images are large and this takes up a good portion of the time when running load-task.

Subsequent runs would be much faster and help the local debugging/development process.

Dominant language
Python
Stars
26
Forks
55
Avg merge
2d 6m
Merged PRs (30d)
15

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from taskcluster/taskgraph

All issues in taskcluster/taskgraph

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.