File tree Expand file tree Collapse file tree 3 files changed +34
-5
lines changed Expand file tree Collapse file tree 3 files changed +34
-5
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ Works With
77
77
schedulers/ray
78
78
schedulers/aws_batch
79
79
schedulers/lsf
80
+ schedulers/gcp_batch
80
81
81
82
.. fbcode ::
82
83
Original file line number Diff line number Diff line change
1
+ GCP Batch
2
+ =================
3
+
4
+ .. automodule :: torchx.schedulers.gcp_batch_scheduler
5
+
6
+ .. currentmodule :: torchx.schedulers.gcp_batch_scheduler
7
+
8
+ .. autoclass :: GCPBatchScheduler
9
+ :members:
10
+ :show-inheritance:
11
+
12
+ .. autoclass :: GCPBatchJob
13
+ :members:
14
+
15
+ Reference
16
+ ~~~~~~~~~~~~
17
+
18
+ .. autofunction :: create_scheduler
Original file line number Diff line number Diff line change 12
12
13
13
This scheduler is in prototype stage and may change without notice.
14
14
15
+ Prerequisites
16
+ ==============
17
+
18
+ You need to have a GCP project configured to use Batch by enabling and setting it up.
19
+ See https://cloud.google.com/batch/docs/get-started#prerequisites
20
+
15
21
"""
16
22
17
23
from dataclasses import dataclass
@@ -104,8 +110,8 @@ class GCPBatchScheduler(Scheduler[GCPBatchOpts]):
104
110
105
111
$ pip install torchx[gcp_batch]
106
112
$ torchx run --scheduler gcp_batch utils.echo --msg hello
107
- gcp_batch://torchx_user/1234
108
- $ torchx status gcp_batch://torchx_user/1234
113
+ # This launches a job with app handle like gcp_batch://torchx/project:location:app_id1234 and prints it
114
+ $ torchx status gcp_batch://torchx/project:location:app_id1234
109
115
...
110
116
111
117
Authentication is loaded from the environment using the gcloud credential handling.
@@ -120,9 +126,13 @@ class GCPBatchScheduler(Scheduler[GCPBatchOpts]):
120
126
.. compatibility::
121
127
type: scheduler
122
128
features:
123
- describe: |
124
- Partial support. GCPBatchScheduler will return job status
125
- but does not provide the complete original AppSpec.
129
+ cancel: true
130
+ logs: true
131
+ describe: true
132
+ distributed: true
133
+ workspaces: false
134
+ mounts: false
135
+ elasticity: false
126
136
127
137
"""
128
138
You can’t perform that action at this time.
0 commit comments