@@ -111,6 +111,15 @@ class TesExecutor(CustomBaseModel):
111
111
),
112
112
examples = [{"BLASTDB" : "/data/GRC38" , "HMMERDB" : "/data/hmmer" }],
113
113
)
114
+ ignore_error : Optional [bool ] = Field (
115
+ default = None ,
116
+ description = (
117
+ "Default behavior of running an array of executors is that "
118
+ "execution stopson the first error. If `ignore_error` is `True`, "
119
+ "then the runner will record error exit codes, but will continue "
120
+ "on to the next tesExecutor."
121
+ ),
122
+ )
114
123
115
124
116
125
class TesExecutorLog (CustomBaseModel ):
@@ -181,7 +190,7 @@ class TesInput(CustomBaseModel):
181
190
),
182
191
examples = ["/data/file1" ],
183
192
)
184
- type : TesFileType
193
+ type : Optional [ TesFileType ] = TesFileType . FILE
185
194
content : Optional [str ] = Field (
186
195
default = None ,
187
196
description = (
@@ -191,6 +200,20 @@ class TesInput(CustomBaseModel):
191
200
' "url" must be ignored.'
192
201
),
193
202
)
203
+ streamable : Optional [bool ] = Field (
204
+ default = None ,
205
+ description = (
206
+ "Indicate that a file resource could be accessed using a"
207
+ " streaming interface, ie a FUSE mounted s3 object. This flag"
208
+ " indicates that using a streaming mount, as opposed to "
209
+ "downloading the whole file to the local scratch space, may be "
210
+ "faster despite the latency and overhead. This does not mean that"
211
+ " the backend will use a streaming interface, as it may not be "
212
+ "provided by the vendor, but if the capacity is avalible it can "
213
+ " be used without degrading the performance of the underlying"
214
+ " program."
215
+ ),
216
+ )
194
217
195
218
196
219
class TesOutput (CustomBaseModel ):
@@ -220,7 +243,7 @@ class TesOutput(CustomBaseModel):
220
243
" absolute path."
221
244
),
222
245
)
223
- type : TesFileType
246
+ type : Optional [ TesFileType ] = TesFileType . FILE
224
247
225
248
226
249
class TesOutputFileLog (CustomBaseModel ):
@@ -284,6 +307,34 @@ class TesResources(CustomBaseModel):
284
307
),
285
308
examples = ["us-west-1" ],
286
309
)
310
+ backend_parameters : Optional [dict [str , str ]] = Field (
311
+ default = None ,
312
+ description = (
313
+ "Key/value pairs for backend configuration.ServiceInfo shall "
314
+ "return a list of keys that a backend supports. Keys are case "
315
+ "insensitive. It is expected that clients pass all runtime or "
316
+ "hardware requirement key/values that are not mapped to existing"
317
+ " tesResources properties to backend_parameters. Backends shall"
318
+ " log system warnings if a key is passed that is unsupported. "
319
+ "Backends shall not store or return unsupported keys if included "
320
+ "in a task. If backend_parameters_strict equals true, backends "
321
+ "should fail the task if any key/values are unsupported, "
322
+ " otherwise, backends should attempt to run the task Intended "
323
+ "uses include VM size selection, coprocessor configuration,"
324
+ ' etc. \n Example: ```\n {\n "backend_parameters" : {\n '
325
+ '"VmSize" :"Standard_D64_v3"\n }\n }\n ```'
326
+ ),
327
+ examples = [{"VmSize" : "Standard_D64_v3" }],
328
+ )
329
+ backend_parameters_strict : Optional [bool ] = Field (
330
+ default = False ,
331
+ description = (
332
+ "If set to true, backends should fail the task if any"
333
+ " backend_parameters key/values are unsupported, otherwise, "
334
+ "backends should attempt to run the task"
335
+ ),
336
+ examples = [False ],
337
+ )
287
338
288
339
289
340
class Artifact (Enum ):
@@ -434,6 +485,8 @@ class TesState(Enum):
434
485
EXECUTOR_ERROR = "EXECUTOR_ERROR"
435
486
SYSTEM_ERROR = "SYSTEM_ERROR"
436
487
CANCELED = "CANCELED"
488
+ PREEMPTED = "PREEMPTED"
489
+ CANCELING = "CANCELING"
437
490
438
491
439
492
class TesNextTes (CustomBaseModel ):
0 commit comments