@flyteorg/flyteidl 1.1.7 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -645,7 +645,7 @@ Represents the error message from the execution.
|
|
|
645
645
|
NodeExecution
|
|
646
646
|
------------------------------------------------------------------
|
|
647
647
|
|
|
648
|
-
Indicates various phases of Node Execution
|
|
648
|
+
Indicates various phases of Node Execution that only include the time spent to run the nodes/workflows
|
|
649
649
|
|
|
650
650
|
|
|
651
651
|
|
|
@@ -281,6 +281,166 @@ of a hive task's TaskTemplate
|
|
|
281
281
|
|
|
282
282
|
|
|
283
283
|
|
|
284
|
+
..
|
|
285
|
+
end messages
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
..
|
|
289
|
+
end enums
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
..
|
|
293
|
+
end HasExtensions
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
..
|
|
297
|
+
end services
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
.. _ref_flyteidl/plugins/ray.proto:
|
|
303
|
+
|
|
304
|
+
flyteidl/plugins/ray.proto
|
|
305
|
+
==================================================================
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
.. _ref_flyteidl.plugins.HeadGroupSpec:
|
|
312
|
+
|
|
313
|
+
HeadGroupSpec
|
|
314
|
+
------------------------------------------------------------------
|
|
315
|
+
|
|
316
|
+
HeadGroupSpec are the spec for the head pod
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
.. csv-table:: HeadGroupSpec type fields
|
|
321
|
+
:header: "Field", "Type", "Label", "Description"
|
|
322
|
+
:widths: auto
|
|
323
|
+
|
|
324
|
+
"ray_start_params", ":ref:`ref_flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry`", "repeated", "Optional. RayStartParams are the params of the start command: address, object-store-memory. Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start"
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
.. _ref_flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry:
|
|
333
|
+
|
|
334
|
+
HeadGroupSpec.RayStartParamsEntry
|
|
335
|
+
------------------------------------------------------------------
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
.. csv-table:: HeadGroupSpec.RayStartParamsEntry type fields
|
|
342
|
+
:header: "Field", "Type", "Label", "Description"
|
|
343
|
+
:widths: auto
|
|
344
|
+
|
|
345
|
+
"key", ":ref:`ref_string`", "", ""
|
|
346
|
+
"value", ":ref:`ref_string`", "", ""
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
.. _ref_flyteidl.plugins.RayCluster:
|
|
355
|
+
|
|
356
|
+
RayCluster
|
|
357
|
+
------------------------------------------------------------------
|
|
358
|
+
|
|
359
|
+
Define Ray cluster defines the desired state of RayCluster
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
.. csv-table:: RayCluster type fields
|
|
364
|
+
:header: "Field", "Type", "Label", "Description"
|
|
365
|
+
:widths: auto
|
|
366
|
+
|
|
367
|
+
"head_group_spec", ":ref:`ref_flyteidl.plugins.HeadGroupSpec`", "", "HeadGroupSpecs are the spec for the head pod"
|
|
368
|
+
"worker_group_spec", ":ref:`ref_flyteidl.plugins.WorkerGroupSpec`", "repeated", "WorkerGroupSpecs are the specs for the worker pods"
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
.. _ref_flyteidl.plugins.RayJob:
|
|
377
|
+
|
|
378
|
+
RayJob
|
|
379
|
+
------------------------------------------------------------------
|
|
380
|
+
|
|
381
|
+
RayJobSpec defines the desired state of RayJob
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
.. csv-table:: RayJob type fields
|
|
386
|
+
:header: "Field", "Type", "Label", "Description"
|
|
387
|
+
:widths: auto
|
|
388
|
+
|
|
389
|
+
"ray_cluster", ":ref:`ref_flyteidl.plugins.RayCluster`", "", "RayClusterSpec is the cluster template to run the job"
|
|
390
|
+
"runtime_env", ":ref:`ref_string`", "", "runtime_env is base64 encoded. Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments"
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
.. _ref_flyteidl.plugins.WorkerGroupSpec:
|
|
399
|
+
|
|
400
|
+
WorkerGroupSpec
|
|
401
|
+
------------------------------------------------------------------
|
|
402
|
+
|
|
403
|
+
WorkerGroupSpec are the specs for the worker pods
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
.. csv-table:: WorkerGroupSpec type fields
|
|
408
|
+
:header: "Field", "Type", "Label", "Description"
|
|
409
|
+
:widths: auto
|
|
410
|
+
|
|
411
|
+
"group_name", ":ref:`ref_string`", "", "Required. RayCluster can have multiple worker groups, and it distinguishes them by name"
|
|
412
|
+
"replicas", ":ref:`ref_int32`", "", "Required. Desired replicas of the worker group. Defaults to 1."
|
|
413
|
+
"min_replicas", ":ref:`ref_int32`", "", "Optional. Min replicas of the worker group. MinReplicas defaults to 1."
|
|
414
|
+
"max_replicas", ":ref:`ref_int32`", "", "Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32"
|
|
415
|
+
"ray_start_params", ":ref:`ref_flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry`", "repeated", "Optional. RayStartParams are the params of the start command: address, object-store-memory. Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start"
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
.. _ref_flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry:
|
|
424
|
+
|
|
425
|
+
WorkerGroupSpec.RayStartParamsEntry
|
|
426
|
+
------------------------------------------------------------------
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
.. csv-table:: WorkerGroupSpec.RayStartParamsEntry type fields
|
|
433
|
+
:header: "Field", "Type", "Label", "Description"
|
|
434
|
+
:widths: auto
|
|
435
|
+
|
|
436
|
+
"key", ":ref:`ref_string`", "", ""
|
|
437
|
+
"value", ":ref:`ref_string`", "", ""
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
|
|
284
444
|
..
|
|
285
445
|
end messages
|
|
286
446
|
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package flyteidl.plugins;
|
|
4
|
+
|
|
5
|
+
option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/plugins";
|
|
6
|
+
|
|
7
|
+
import "google/protobuf/timestamp.proto";
|
|
8
|
+
|
|
9
|
+
// RayJobSpec defines the desired state of RayJob
|
|
10
|
+
message RayJob {
|
|
11
|
+
// RayClusterSpec is the cluster template to run the job
|
|
12
|
+
RayCluster ray_cluster = 1;
|
|
13
|
+
// runtime_env is base64 encoded.
|
|
14
|
+
// Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments
|
|
15
|
+
string runtime_env = 2;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Define Ray cluster defines the desired state of RayCluster
|
|
19
|
+
message RayCluster {
|
|
20
|
+
// HeadGroupSpecs are the spec for the head pod
|
|
21
|
+
HeadGroupSpec head_group_spec = 1;
|
|
22
|
+
// WorkerGroupSpecs are the specs for the worker pods
|
|
23
|
+
repeated WorkerGroupSpec worker_group_spec = 2;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// HeadGroupSpec are the spec for the head pod
|
|
27
|
+
message HeadGroupSpec {
|
|
28
|
+
// Optional. RayStartParams are the params of the start command: address, object-store-memory.
|
|
29
|
+
// Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
|
|
30
|
+
map<string, string> ray_start_params = 1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// WorkerGroupSpec are the specs for the worker pods
|
|
34
|
+
message WorkerGroupSpec {
|
|
35
|
+
// Required. RayCluster can have multiple worker groups, and it distinguishes them by name
|
|
36
|
+
string group_name = 1;
|
|
37
|
+
// Required. Desired replicas of the worker group. Defaults to 1.
|
|
38
|
+
int32 replicas = 2;
|
|
39
|
+
// Optional. Min replicas of the worker group. MinReplicas defaults to 1.
|
|
40
|
+
int32 min_replicas = 3;
|
|
41
|
+
// Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32
|
|
42
|
+
int32 max_replicas = 4;
|
|
43
|
+
// Optional. RayStartParams are the params of the start command: address, object-store-memory.
|
|
44
|
+
// Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
|
|
45
|
+
map<string, string> ray_start_params = 5;
|
|
46
|
+
}
|