Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share caches across worker implementations #655

Open
matt-boris opened this issue Feb 25, 2025 · 4 comments
Open

Share caches across worker implementations #655

matt-boris opened this issue Feb 25, 2025 · 4 comments
Labels
feature A feature request

Comments

@matt-boris
Copy link
Contributor

So long as the docker worker task is submitted to a generic worker pool (and being translated via d2g), I think it'd make sense to be able to share these docker worker caches with generic worker tasks as well.

I believe there's some renaming of the cache that happens inside taskgraph that's currently making it so generic worker and docker worker tasks cannot share caches.

@matt-boris matt-boris added the feature A feature request label Feb 25, 2025
@jcristau
Copy link
Contributor

I'm curious about the use case for this, can you elaborate?

@matt-boris
Copy link
Contributor Author

Yeah, so I've added checkout caches to taskcluster's CI and we use a mix of both generic worker and docker worker implementations (to better integrate in with taskgraph, for example the build docker image tasks I believe need to be docker worker). So I'd love for a checkout cache to be shared across all of these cases, since generic worker is what's handling all of our CI tasks.

taskcluster/taskcluster#7540

@ahal
Copy link
Collaborator

ahal commented Feb 28, 2025

Isn't a pool either D2G or not though? Or can the same workers run a mix of tasks?

@matt-boris
Copy link
Contributor Author

Or can the same workers run a mix of tasks?

Yes, this is how we have our pools set up in community, at least. I believe all of our generic worker pools have d2g enabled, by default. So they all can accept both task payloads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A feature request
Projects
None yet
Development

No branches or pull requests

3 participants