clarifai-grpc 12.0.0__py3-none-any.whl → 12.0.2__py3-none-any.whl

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.
@@ -9,6 +9,7 @@ import sys
9
9
  import typing
10
10
 
11
11
  import google.protobuf.descriptor
12
+ import google.protobuf.duration_pb2
12
13
  import google.protobuf.internal.containers
13
14
  import google.protobuf.internal.enum_type_wrapper
14
15
  import google.protobuf.message
@@ -10648,6 +10649,7 @@ class TaskWorker(google.protobuf.message.Message):
10648
10649
  PARTITIONED_STRATEGY_INFO_FIELD_NUMBER: builtins.int
10649
10650
  WORKERS_FIELD_NUMBER: builtins.int
10650
10651
  TYPE_FIELD_NUMBER: builtins.int
10652
+ RUNNER_SELECTORS_FIELD_NUMBER: builtins.int
10651
10653
  strategy: global___TaskWorker.TaskWorkerStrategy.ValueType
10652
10654
  """Worker strategy."""
10653
10655
  @property
@@ -10685,6 +10687,16 @@ class TaskWorker(google.protobuf.message.Message):
10685
10687
  """Who is doing annotations - human Worker or auto-annotation via Model/Workflow.
10686
10688
  If set, worker must have be set accordingly to either human worker or model/workflow worker
10687
10689
  """
10690
+ @property
10691
+ def runner_selectors(
10692
+ self,
10693
+ ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
10694
+ global___RunnerSelector
10695
+ ]:
10696
+ """Runner selectors is used to select specific runners for the workers of this task.
10697
+ The index of runner_selectors corresponds to the index of workers.
10698
+ In other words: runner_selectors[i] is the runner selector for workers[i].
10699
+ """
10688
10700
  def __init__(
10689
10701
  self,
10690
10702
  *,
@@ -10694,6 +10706,7 @@ class TaskWorker(google.protobuf.message.Message):
10694
10706
  partitioned_strategy_info: global___TaskWorkerPartitionedStrategyInfo | None = ...,
10695
10707
  workers: collections.abc.Iterable[global___Worker] | None = ...,
10696
10708
  type: global___TaskWorker.WorkerType.ValueType = ...,
10709
+ runner_selectors: collections.abc.Iterable[global___RunnerSelector] | None = ...,
10697
10710
  ) -> None: ...
10698
10711
  def HasField(
10699
10712
  self,
@@ -10709,6 +10722,8 @@ class TaskWorker(google.protobuf.message.Message):
10709
10722
  field_name: typing_extensions.Literal[
10710
10723
  "partitioned_strategy_info",
10711
10724
  b"partitioned_strategy_info",
10725
+ "runner_selectors",
10726
+ b"runner_selectors",
10712
10727
  "strategy",
10713
10728
  b"strategy",
10714
10729
  "strategy_info",
@@ -15205,10 +15220,10 @@ class RunnerSelector(google.protobuf.message.Message):
15205
15220
  """
15206
15221
  @property
15207
15222
  def runner(self) -> global___Runner:
15208
- """Optionally a partcular runner within the nodepool."""
15223
+ """Optionally a particular runner within the nodepool."""
15209
15224
  @property
15210
15225
  def deployment(self) -> global___Deployment:
15211
- """Optionally a partcular deployment within the nodepool.
15226
+ """Optionally a particular deployment within the nodepool.
15212
15227
  In future as we support matching runners based on just labels:
15213
15228
  RunnerLabels runner_labels = 3; // FUTURE
15214
15229
  """
@@ -17334,6 +17349,9 @@ class PipelineVersionRun(google.protobuf.message.Message):
17334
17349
  MODIFIED_AT_FIELD_NUMBER: builtins.int
17335
17350
  INPUT_ARGS_OVERRIDE_FIELD_NUMBER: builtins.int
17336
17351
  ORCHESTRATION_SPEC_FIELD_NUMBER: builtins.int
17352
+ STARTED_AT_FIELD_NUMBER: builtins.int
17353
+ ENDED_AT_FIELD_NUMBER: builtins.int
17354
+ TOTAL_RUN_DURATION_FIELD_NUMBER: builtins.int
17337
17355
  id: builtins.str
17338
17356
  @property
17339
17357
  def pipeline_version(self) -> global___PipelineVersion:
@@ -17364,6 +17382,15 @@ class PipelineVersionRun(google.protobuf.message.Message):
17364
17382
  """Final merged orchestration spec snapshot submitted to backend.
17365
17383
  This field is read-only and cannot be set during creation.
17366
17384
  """
17385
+ @property
17386
+ def started_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
17387
+ """When the pipeline run started executing (first JOB_RUNNING status)"""
17388
+ @property
17389
+ def ended_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
17390
+ """When the pipeline run finished executing (terminal status)"""
17391
+ @property
17392
+ def total_run_duration(self) -> google.protobuf.duration_pb2.Duration:
17393
+ """Total cumulative run duration excluding pause time"""
17367
17394
  def __init__(
17368
17395
  self,
17369
17396
  *,
@@ -17377,12 +17404,17 @@ class PipelineVersionRun(google.protobuf.message.Message):
17377
17404
  modified_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
17378
17405
  input_args_override: global___OrchestrationArgsOverride | None = ...,
17379
17406
  orchestration_spec: global___OrchestrationSpec | None = ...,
17407
+ started_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
17408
+ ended_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
17409
+ total_run_duration: google.protobuf.duration_pb2.Duration | None = ...,
17380
17410
  ) -> None: ...
17381
17411
  def HasField(
17382
17412
  self,
17383
17413
  field_name: typing_extensions.Literal[
17384
17414
  "created_at",
17385
17415
  b"created_at",
17416
+ "ended_at",
17417
+ b"ended_at",
17386
17418
  "input_args_override",
17387
17419
  b"input_args_override",
17388
17420
  "modified_at",
@@ -17393,6 +17425,10 @@ class PipelineVersionRun(google.protobuf.message.Message):
17393
17425
  b"orchestration_status",
17394
17426
  "pipeline_version",
17395
17427
  b"pipeline_version",
17428
+ "started_at",
17429
+ b"started_at",
17430
+ "total_run_duration",
17431
+ b"total_run_duration",
17396
17432
  ],
17397
17433
  ) -> builtins.bool: ...
17398
17434
  def ClearField(
@@ -17402,6 +17438,8 @@ class PipelineVersionRun(google.protobuf.message.Message):
17402
17438
  b"app_id",
17403
17439
  "created_at",
17404
17440
  b"created_at",
17441
+ "ended_at",
17442
+ b"ended_at",
17405
17443
  "id",
17406
17444
  b"id",
17407
17445
  "input_args_override",
@@ -17416,6 +17454,10 @@ class PipelineVersionRun(google.protobuf.message.Message):
17416
17454
  b"orchestration_status",
17417
17455
  "pipeline_version",
17418
17456
  b"pipeline_version",
17457
+ "started_at",
17458
+ b"started_at",
17459
+ "total_run_duration",
17460
+ b"total_run_duration",
17419
17461
  "user_id",
17420
17462
  b"user_id",
17421
17463
  ],
@@ -17423,6 +17465,64 @@ class PipelineVersionRun(google.protobuf.message.Message):
17423
17465
 
17424
17466
  global___PipelineVersionRun = PipelineVersionRun
17425
17467
 
17468
+ @typing_extensions.final
17469
+ class PipelineVersionRunStatusLog(google.protobuf.message.Message):
17470
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
17471
+
17472
+ ID_FIELD_NUMBER: builtins.int
17473
+ PIPELINE_VERSION_RUN_ID_FIELD_NUMBER: builtins.int
17474
+ STATUS_FIELD_NUMBER: builtins.int
17475
+ MESSAGE_FIELD_NUMBER: builtins.int
17476
+ TRIGGERED_BY_USER_ID_FIELD_NUMBER: builtins.int
17477
+ CREATED_AT_FIELD_NUMBER: builtins.int
17478
+ id: builtins.str
17479
+ """Unique ID for this status record"""
17480
+ pipeline_version_run_id: builtins.str
17481
+ """The PipelineVersionRun this log entry belongs to"""
17482
+ @property
17483
+ def status(self) -> proto.clarifai.api.status.status_pb2.Status:
17484
+ """Clarifai status object representing the current status"""
17485
+ message: builtins.str
17486
+ """Optional human-readable reason or message (e.g. "Paused due to resource limit")"""
17487
+ triggered_by_user_id: builtins.str
17488
+ """Who triggered this status change"""
17489
+ @property
17490
+ def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
17491
+ """When this status was recorded"""
17492
+ def __init__(
17493
+ self,
17494
+ *,
17495
+ id: builtins.str = ...,
17496
+ pipeline_version_run_id: builtins.str = ...,
17497
+ status: proto.clarifai.api.status.status_pb2.Status | None = ...,
17498
+ message: builtins.str = ...,
17499
+ triggered_by_user_id: builtins.str = ...,
17500
+ created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
17501
+ ) -> None: ...
17502
+ def HasField(
17503
+ self,
17504
+ field_name: typing_extensions.Literal["created_at", b"created_at", "status", b"status"],
17505
+ ) -> builtins.bool: ...
17506
+ def ClearField(
17507
+ self,
17508
+ field_name: typing_extensions.Literal[
17509
+ "created_at",
17510
+ b"created_at",
17511
+ "id",
17512
+ b"id",
17513
+ "message",
17514
+ b"message",
17515
+ "pipeline_version_run_id",
17516
+ b"pipeline_version_run_id",
17517
+ "status",
17518
+ b"status",
17519
+ "triggered_by_user_id",
17520
+ b"triggered_by_user_id",
17521
+ ],
17522
+ ) -> None: ...
17523
+
17524
+ global___PipelineVersionRunStatusLog = PipelineVersionRunStatusLog
17525
+
17426
17526
  @typing_extensions.final
17427
17527
  class Secret(google.protobuf.message.Message):
17428
17528
  DESCRIPTOR: google.protobuf.descriptor.Descriptor