Skip to content

Conversation

@alberto-miranda
Copy link
Contributor

@alberto-miranda alberto-miranda commented Jan 16, 2026

Description

This PR adds support for two new google-batch flags:

  • --head-job-template: Allows specifying which instance template to use for the head job
  • --compute-job-template: Allows specifying which instance template to use for compute tasks.

Usage

Simple name (if the CE is in the same project)

tw compute-envs add google-batch \
    [...] \
    --head-job-template <EXAMPLE_TEMPLATE> \
    --compute-job-template <EXAMPLE_TEMPLATE>

Fully qualified reference:

tw compute-envs add google-batch \
    [...] \
    --head-job-template projects/<EXAMPLE_PROJECT>/global/instanceTemplates/<EXAMPLE_TEMPLATE> \
    --compute-job-template projects/<EXAMPLE_PROJECT>/global/instanceTemplates/<EXAMPLE_TEMPLATE>

Closes #458

@alberto-miranda alberto-miranda self-assigned this Jan 16, 2026
@alberto-miranda alberto-miranda marked this pull request as ready for review January 16, 2026 17:39
@alberto-miranda alberto-miranda requested review from a team and jordeu January 16, 2026 17:43
@alberto-miranda alberto-miranda merged commit 44914fc into master Jan 19, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for specifying instance templates for GCP CEs

4 participants