flyte 0.0.1b3__py3-none-any.whl → 0.2.0a0__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.

Potentially problematic release.


This version of flyte might be problematic. Click here for more details.

Files changed (319) hide show
  1. flyte/__init__.py +20 -4
  2. flyte/_bin/runtime.py +33 -7
  3. flyte/_build.py +3 -2
  4. flyte/_cache/cache.py +1 -2
  5. flyte/_code_bundle/_packaging.py +1 -1
  6. flyte/_code_bundle/_utils.py +0 -16
  7. flyte/_code_bundle/bundle.py +43 -12
  8. flyte/_context.py +8 -2
  9. flyte/_deploy.py +56 -15
  10. flyte/_environment.py +45 -4
  11. flyte/_excepthook.py +37 -0
  12. flyte/_group.py +2 -1
  13. flyte/_image.py +8 -4
  14. flyte/_initialize.py +112 -254
  15. flyte/_interface.py +3 -3
  16. flyte/_internal/controllers/__init__.py +19 -6
  17. flyte/_internal/controllers/_local_controller.py +83 -8
  18. flyte/_internal/controllers/_trace.py +2 -1
  19. flyte/_internal/controllers/remote/__init__.py +27 -7
  20. flyte/_internal/controllers/remote/_action.py +7 -2
  21. flyte/_internal/controllers/remote/_client.py +5 -1
  22. flyte/_internal/controllers/remote/_controller.py +159 -26
  23. flyte/_internal/controllers/remote/_core.py +13 -5
  24. flyte/_internal/controllers/remote/_informer.py +4 -4
  25. flyte/_internal/controllers/remote/_service_protocol.py +6 -6
  26. flyte/_internal/imagebuild/docker_builder.py +12 -1
  27. flyte/_internal/imagebuild/image_builder.py +16 -11
  28. flyte/_internal/runtime/convert.py +164 -21
  29. flyte/_internal/runtime/entrypoints.py +1 -1
  30. flyte/_internal/runtime/io.py +3 -3
  31. flyte/_internal/runtime/task_serde.py +140 -20
  32. flyte/_internal/runtime/taskrunner.py +4 -3
  33. flyte/_internal/runtime/types_serde.py +1 -1
  34. flyte/_logging.py +12 -1
  35. flyte/_map.py +215 -0
  36. flyte/_pod.py +19 -0
  37. flyte/_protos/common/list_pb2.py +3 -3
  38. flyte/_protos/common/list_pb2.pyi +2 -0
  39. flyte/_protos/logs/dataplane/payload_pb2.py +28 -24
  40. flyte/_protos/logs/dataplane/payload_pb2.pyi +11 -2
  41. flyte/_protos/workflow/common_pb2.py +27 -0
  42. flyte/_protos/workflow/common_pb2.pyi +14 -0
  43. flyte/_protos/workflow/environment_pb2.py +29 -0
  44. flyte/_protos/workflow/environment_pb2.pyi +12 -0
  45. flyte/_protos/workflow/queue_service_pb2.py +40 -41
  46. flyte/_protos/workflow/queue_service_pb2.pyi +35 -30
  47. flyte/_protos/workflow/queue_service_pb2_grpc.py +15 -15
  48. flyte/_protos/workflow/run_definition_pb2.py +61 -61
  49. flyte/_protos/workflow/run_definition_pb2.pyi +8 -4
  50. flyte/_protos/workflow/run_service_pb2.py +20 -24
  51. flyte/_protos/workflow/run_service_pb2.pyi +2 -6
  52. flyte/_protos/workflow/state_service_pb2.py +36 -28
  53. flyte/_protos/workflow/state_service_pb2.pyi +19 -15
  54. flyte/_protos/workflow/state_service_pb2_grpc.py +28 -28
  55. flyte/_protos/workflow/task_definition_pb2.py +29 -22
  56. flyte/_protos/workflow/task_definition_pb2.pyi +21 -5
  57. flyte/_protos/workflow/task_service_pb2.py +27 -11
  58. flyte/_protos/workflow/task_service_pb2.pyi +29 -1
  59. flyte/_protos/workflow/task_service_pb2_grpc.py +34 -0
  60. flyte/_run.py +166 -95
  61. flyte/_task.py +110 -28
  62. flyte/_task_environment.py +55 -72
  63. flyte/_trace.py +6 -14
  64. flyte/_utils/__init__.py +6 -0
  65. flyte/_utils/async_cache.py +139 -0
  66. flyte/_utils/coro_management.py +0 -2
  67. flyte/_utils/helpers.py +45 -19
  68. flyte/_utils/org_discovery.py +57 -0
  69. flyte/_version.py +2 -2
  70. flyte/cli/__init__.py +3 -0
  71. flyte/cli/_abort.py +28 -0
  72. flyte/{_cli → cli}/_common.py +73 -23
  73. flyte/cli/_create.py +145 -0
  74. flyte/{_cli → cli}/_delete.py +4 -4
  75. flyte/{_cli → cli}/_deploy.py +26 -14
  76. flyte/cli/_gen.py +163 -0
  77. flyte/{_cli → cli}/_get.py +98 -23
  78. {union/_cli → flyte/cli}/_params.py +106 -147
  79. flyte/{_cli → cli}/_run.py +99 -20
  80. flyte/cli/main.py +166 -0
  81. flyte/config/__init__.py +3 -0
  82. flyte/config/_config.py +216 -0
  83. flyte/config/_internal.py +64 -0
  84. flyte/config/_reader.py +207 -0
  85. flyte/errors.py +29 -0
  86. flyte/extras/_container.py +33 -43
  87. flyte/io/__init__.py +17 -1
  88. flyte/io/_dir.py +2 -2
  89. flyte/io/_file.py +3 -4
  90. flyte/io/{structured_dataset → _structured_dataset}/basic_dfs.py +1 -1
  91. flyte/io/{structured_dataset → _structured_dataset}/structured_dataset.py +1 -1
  92. flyte/{_datastructures.py → models.py} +56 -7
  93. flyte/remote/__init__.py +2 -1
  94. flyte/remote/_client/_protocols.py +2 -0
  95. flyte/remote/_client/auth/_auth_utils.py +14 -0
  96. flyte/remote/_client/auth/_channel.py +34 -3
  97. flyte/remote/_client/auth/_token_client.py +3 -3
  98. flyte/remote/_client/controlplane.py +13 -13
  99. flyte/remote/_console.py +1 -1
  100. flyte/remote/_data.py +10 -6
  101. flyte/remote/_logs.py +89 -29
  102. flyte/remote/_project.py +8 -9
  103. flyte/remote/_run.py +228 -131
  104. flyte/remote/_secret.py +12 -12
  105. flyte/remote/_task.py +179 -15
  106. flyte/report/_report.py +4 -4
  107. flyte/storage/__init__.py +5 -0
  108. flyte/storage/_config.py +233 -0
  109. flyte/storage/_storage.py +23 -3
  110. flyte/syncify/__init__.py +56 -0
  111. flyte/syncify/_api.py +371 -0
  112. flyte/types/__init__.py +23 -0
  113. flyte/types/_interface.py +22 -7
  114. flyte/{io/pickle/transformer.py → types/_pickle.py} +2 -1
  115. flyte/types/_type_engine.py +95 -18
  116. flyte-0.2.0a0.dist-info/METADATA +249 -0
  117. flyte-0.2.0a0.dist-info/RECORD +218 -0
  118. {flyte-0.0.1b3.dist-info → flyte-0.2.0a0.dist-info}/entry_points.txt +1 -1
  119. flyte/_api_commons.py +0 -3
  120. flyte/_cli/__init__.py +0 -0
  121. flyte/_cli/_create.py +0 -42
  122. flyte/_cli/main.py +0 -72
  123. flyte/_internal/controllers/pbhash.py +0 -39
  124. flyte/io/_dataframe.py +0 -0
  125. flyte/io/pickle/__init__.py +0 -0
  126. flyte-0.0.1b3.dist-info/METADATA +0 -179
  127. flyte-0.0.1b3.dist-info/RECORD +0 -390
  128. union/__init__.py +0 -54
  129. union/_api_commons.py +0 -3
  130. union/_bin/__init__.py +0 -0
  131. union/_bin/runtime.py +0 -113
  132. union/_build.py +0 -25
  133. union/_cache/__init__.py +0 -12
  134. union/_cache/cache.py +0 -141
  135. union/_cache/defaults.py +0 -9
  136. union/_cache/policy_function_body.py +0 -42
  137. union/_cli/__init__.py +0 -0
  138. union/_cli/_common.py +0 -263
  139. union/_cli/_create.py +0 -40
  140. union/_cli/_delete.py +0 -23
  141. union/_cli/_deploy.py +0 -120
  142. union/_cli/_get.py +0 -162
  143. union/_cli/_run.py +0 -150
  144. union/_cli/main.py +0 -72
  145. union/_code_bundle/__init__.py +0 -8
  146. union/_code_bundle/_ignore.py +0 -113
  147. union/_code_bundle/_packaging.py +0 -187
  148. union/_code_bundle/_utils.py +0 -342
  149. union/_code_bundle/bundle.py +0 -176
  150. union/_context.py +0 -146
  151. union/_datastructures.py +0 -295
  152. union/_deploy.py +0 -185
  153. union/_doc.py +0 -29
  154. union/_docstring.py +0 -26
  155. union/_environment.py +0 -43
  156. union/_group.py +0 -31
  157. union/_hash.py +0 -23
  158. union/_image.py +0 -760
  159. union/_initialize.py +0 -585
  160. union/_interface.py +0 -84
  161. union/_internal/__init__.py +0 -3
  162. union/_internal/controllers/__init__.py +0 -77
  163. union/_internal/controllers/_local_controller.py +0 -77
  164. union/_internal/controllers/pbhash.py +0 -39
  165. union/_internal/controllers/remote/__init__.py +0 -40
  166. union/_internal/controllers/remote/_action.py +0 -131
  167. union/_internal/controllers/remote/_client.py +0 -43
  168. union/_internal/controllers/remote/_controller.py +0 -169
  169. union/_internal/controllers/remote/_core.py +0 -341
  170. union/_internal/controllers/remote/_informer.py +0 -260
  171. union/_internal/controllers/remote/_service_protocol.py +0 -44
  172. union/_internal/imagebuild/__init__.py +0 -11
  173. union/_internal/imagebuild/docker_builder.py +0 -416
  174. union/_internal/imagebuild/image_builder.py +0 -243
  175. union/_internal/imagebuild/remote_builder.py +0 -0
  176. union/_internal/resolvers/__init__.py +0 -0
  177. union/_internal/resolvers/_task_module.py +0 -31
  178. union/_internal/resolvers/common.py +0 -24
  179. union/_internal/resolvers/default.py +0 -27
  180. union/_internal/runtime/__init__.py +0 -0
  181. union/_internal/runtime/convert.py +0 -163
  182. union/_internal/runtime/entrypoints.py +0 -121
  183. union/_internal/runtime/io.py +0 -136
  184. union/_internal/runtime/resources_serde.py +0 -134
  185. union/_internal/runtime/task_serde.py +0 -202
  186. union/_internal/runtime/taskrunner.py +0 -179
  187. union/_internal/runtime/types_serde.py +0 -53
  188. union/_logging.py +0 -124
  189. union/_protos/__init__.py +0 -0
  190. union/_protos/common/authorization_pb2.py +0 -66
  191. union/_protos/common/authorization_pb2.pyi +0 -106
  192. union/_protos/common/identifier_pb2.py +0 -71
  193. union/_protos/common/identifier_pb2.pyi +0 -82
  194. union/_protos/common/identity_pb2.py +0 -48
  195. union/_protos/common/identity_pb2.pyi +0 -72
  196. union/_protos/common/identity_pb2_grpc.py +0 -4
  197. union/_protos/common/list_pb2.py +0 -36
  198. union/_protos/common/list_pb2.pyi +0 -69
  199. union/_protos/common/list_pb2_grpc.py +0 -4
  200. union/_protos/common/policy_pb2.py +0 -37
  201. union/_protos/common/policy_pb2.pyi +0 -27
  202. union/_protos/common/policy_pb2_grpc.py +0 -4
  203. union/_protos/common/role_pb2.py +0 -37
  204. union/_protos/common/role_pb2.pyi +0 -51
  205. union/_protos/common/role_pb2_grpc.py +0 -4
  206. union/_protos/common/runtime_version_pb2.py +0 -28
  207. union/_protos/common/runtime_version_pb2.pyi +0 -24
  208. union/_protos/common/runtime_version_pb2_grpc.py +0 -4
  209. union/_protos/logs/dataplane/payload_pb2.py +0 -96
  210. union/_protos/logs/dataplane/payload_pb2.pyi +0 -168
  211. union/_protos/logs/dataplane/payload_pb2_grpc.py +0 -4
  212. union/_protos/secret/definition_pb2.py +0 -49
  213. union/_protos/secret/definition_pb2.pyi +0 -93
  214. union/_protos/secret/definition_pb2_grpc.py +0 -4
  215. union/_protos/secret/payload_pb2.py +0 -62
  216. union/_protos/secret/payload_pb2.pyi +0 -94
  217. union/_protos/secret/payload_pb2_grpc.py +0 -4
  218. union/_protos/secret/secret_pb2.py +0 -38
  219. union/_protos/secret/secret_pb2.pyi +0 -6
  220. union/_protos/secret/secret_pb2_grpc.py +0 -198
  221. union/_protos/validate/validate/validate_pb2.py +0 -76
  222. union/_protos/workflow/node_execution_service_pb2.py +0 -26
  223. union/_protos/workflow/node_execution_service_pb2.pyi +0 -4
  224. union/_protos/workflow/node_execution_service_pb2_grpc.py +0 -32
  225. union/_protos/workflow/queue_service_pb2.py +0 -75
  226. union/_protos/workflow/queue_service_pb2.pyi +0 -103
  227. union/_protos/workflow/queue_service_pb2_grpc.py +0 -172
  228. union/_protos/workflow/run_definition_pb2.py +0 -100
  229. union/_protos/workflow/run_definition_pb2.pyi +0 -256
  230. union/_protos/workflow/run_definition_pb2_grpc.py +0 -4
  231. union/_protos/workflow/run_logs_service_pb2.py +0 -41
  232. union/_protos/workflow/run_logs_service_pb2.pyi +0 -28
  233. union/_protos/workflow/run_logs_service_pb2_grpc.py +0 -69
  234. union/_protos/workflow/run_service_pb2.py +0 -133
  235. union/_protos/workflow/run_service_pb2.pyi +0 -173
  236. union/_protos/workflow/run_service_pb2_grpc.py +0 -412
  237. union/_protos/workflow/state_service_pb2.py +0 -58
  238. union/_protos/workflow/state_service_pb2.pyi +0 -69
  239. union/_protos/workflow/state_service_pb2_grpc.py +0 -138
  240. union/_protos/workflow/task_definition_pb2.py +0 -72
  241. union/_protos/workflow/task_definition_pb2.pyi +0 -65
  242. union/_protos/workflow/task_definition_pb2_grpc.py +0 -4
  243. union/_protos/workflow/task_service_pb2.py +0 -44
  244. union/_protos/workflow/task_service_pb2.pyi +0 -31
  245. union/_protos/workflow/task_service_pb2_grpc.py +0 -104
  246. union/_resources.py +0 -226
  247. union/_retry.py +0 -32
  248. union/_reusable_environment.py +0 -25
  249. union/_run.py +0 -374
  250. union/_secret.py +0 -61
  251. union/_task.py +0 -354
  252. union/_task_environment.py +0 -186
  253. union/_timeout.py +0 -47
  254. union/_tools.py +0 -27
  255. union/_utils/__init__.py +0 -11
  256. union/_utils/asyn.py +0 -119
  257. union/_utils/file_handling.py +0 -71
  258. union/_utils/helpers.py +0 -46
  259. union/_utils/lazy_module.py +0 -54
  260. union/_utils/uv_script_parser.py +0 -49
  261. union/_version.py +0 -21
  262. union/connectors/__init__.py +0 -0
  263. union/errors.py +0 -128
  264. union/extras/__init__.py +0 -5
  265. union/extras/_container.py +0 -263
  266. union/io/__init__.py +0 -11
  267. union/io/_dataframe.py +0 -0
  268. union/io/_dir.py +0 -425
  269. union/io/_file.py +0 -418
  270. union/io/pickle/__init__.py +0 -0
  271. union/io/pickle/transformer.py +0 -117
  272. union/io/structured_dataset/__init__.py +0 -122
  273. union/io/structured_dataset/basic_dfs.py +0 -219
  274. union/io/structured_dataset/structured_dataset.py +0 -1057
  275. union/py.typed +0 -0
  276. union/remote/__init__.py +0 -23
  277. union/remote/_client/__init__.py +0 -0
  278. union/remote/_client/_protocols.py +0 -129
  279. union/remote/_client/auth/__init__.py +0 -12
  280. union/remote/_client/auth/_authenticators/__init__.py +0 -0
  281. union/remote/_client/auth/_authenticators/base.py +0 -391
  282. union/remote/_client/auth/_authenticators/client_credentials.py +0 -73
  283. union/remote/_client/auth/_authenticators/device_code.py +0 -120
  284. union/remote/_client/auth/_authenticators/external_command.py +0 -77
  285. union/remote/_client/auth/_authenticators/factory.py +0 -200
  286. union/remote/_client/auth/_authenticators/pkce.py +0 -515
  287. union/remote/_client/auth/_channel.py +0 -184
  288. union/remote/_client/auth/_client_config.py +0 -83
  289. union/remote/_client/auth/_default_html.py +0 -32
  290. union/remote/_client/auth/_grpc_utils/__init__.py +0 -0
  291. union/remote/_client/auth/_grpc_utils/auth_interceptor.py +0 -204
  292. union/remote/_client/auth/_grpc_utils/default_metadata_interceptor.py +0 -144
  293. union/remote/_client/auth/_keyring.py +0 -154
  294. union/remote/_client/auth/_token_client.py +0 -258
  295. union/remote/_client/auth/errors.py +0 -16
  296. union/remote/_client/controlplane.py +0 -86
  297. union/remote/_data.py +0 -149
  298. union/remote/_logs.py +0 -74
  299. union/remote/_project.py +0 -86
  300. union/remote/_run.py +0 -820
  301. union/remote/_secret.py +0 -132
  302. union/remote/_task.py +0 -193
  303. union/report/__init__.py +0 -3
  304. union/report/_report.py +0 -178
  305. union/report/_template.html +0 -124
  306. union/storage/__init__.py +0 -24
  307. union/storage/_remote_fs.py +0 -34
  308. union/storage/_storage.py +0 -247
  309. union/storage/_utils.py +0 -5
  310. union/types/__init__.py +0 -11
  311. union/types/_renderer.py +0 -162
  312. union/types/_string_literals.py +0 -120
  313. union/types/_type_engine.py +0 -2131
  314. union/types/_utils.py +0 -80
  315. /union/_protos/common/authorization_pb2_grpc.py → /flyte/_protos/workflow/common_pb2_grpc.py +0 -0
  316. /union/_protos/common/identifier_pb2_grpc.py → /flyte/_protos/workflow/environment_pb2_grpc.py +0 -0
  317. /flyte/io/{structured_dataset → _structured_dataset}/__init__.py +0 -0
  318. {flyte-0.0.1b3.dist-info → flyte-0.2.0a0.dist-info}/WHEEL +0 -0
  319. {flyte-0.0.1b3.dist-info → flyte-0.2.0a0.dist-info}/top_level.txt +0 -0
@@ -1,412 +0,0 @@
1
- # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
- """Client and server classes corresponding to protobuf-defined services."""
3
- import grpc
4
-
5
- from union._protos.workflow import run_service_pb2 as workflow_dot_run__service__pb2
6
-
7
-
8
- class RunServiceStub(object):
9
- """RunService provides an interface for managing runs.
10
- """
11
-
12
- def __init__(self, channel):
13
- """Constructor.
14
-
15
- Args:
16
- channel: A grpc.Channel.
17
- """
18
- self.CreateRun = channel.unary_unary(
19
- '/cloudidl.workflow.RunService/CreateRun',
20
- request_serializer=workflow_dot_run__service__pb2.CreateRunRequest.SerializeToString,
21
- response_deserializer=workflow_dot_run__service__pb2.CreateRunResponse.FromString,
22
- )
23
- self.AbortRun = channel.unary_unary(
24
- '/cloudidl.workflow.RunService/AbortRun',
25
- request_serializer=workflow_dot_run__service__pb2.AbortRunRequest.SerializeToString,
26
- response_deserializer=workflow_dot_run__service__pb2.AbortRunResponse.FromString,
27
- )
28
- self.GetRunDetails = channel.unary_unary(
29
- '/cloudidl.workflow.RunService/GetRunDetails',
30
- request_serializer=workflow_dot_run__service__pb2.GetRunDetailsRequest.SerializeToString,
31
- response_deserializer=workflow_dot_run__service__pb2.GetRunDetailsResponse.FromString,
32
- )
33
- self.WatchRunDetails = channel.unary_stream(
34
- '/cloudidl.workflow.RunService/WatchRunDetails',
35
- request_serializer=workflow_dot_run__service__pb2.WatchRunDetailsRequest.SerializeToString,
36
- response_deserializer=workflow_dot_run__service__pb2.WatchRunDetailsResponse.FromString,
37
- )
38
- self.GetActionDetails = channel.unary_unary(
39
- '/cloudidl.workflow.RunService/GetActionDetails',
40
- request_serializer=workflow_dot_run__service__pb2.GetActionDetailsRequest.SerializeToString,
41
- response_deserializer=workflow_dot_run__service__pb2.GetActionDetailsResponse.FromString,
42
- )
43
- self.WatchActionDetails = channel.unary_stream(
44
- '/cloudidl.workflow.RunService/WatchActionDetails',
45
- request_serializer=workflow_dot_run__service__pb2.WatchActionDetailsRequest.SerializeToString,
46
- response_deserializer=workflow_dot_run__service__pb2.WatchActionDetailsResponse.FromString,
47
- )
48
- self.GetActionData = channel.unary_unary(
49
- '/cloudidl.workflow.RunService/GetActionData',
50
- request_serializer=workflow_dot_run__service__pb2.GetActionDataRequest.SerializeToString,
51
- response_deserializer=workflow_dot_run__service__pb2.GetActionDataResponse.FromString,
52
- )
53
- self.ListRuns = channel.unary_unary(
54
- '/cloudidl.workflow.RunService/ListRuns',
55
- request_serializer=workflow_dot_run__service__pb2.ListRunsRequest.SerializeToString,
56
- response_deserializer=workflow_dot_run__service__pb2.ListRunsResponse.FromString,
57
- )
58
- self.WatchRuns = channel.unary_stream(
59
- '/cloudidl.workflow.RunService/WatchRuns',
60
- request_serializer=workflow_dot_run__service__pb2.WatchRunsRequest.SerializeToString,
61
- response_deserializer=workflow_dot_run__service__pb2.WatchRunsResponse.FromString,
62
- )
63
- self.ListActions = channel.unary_unary(
64
- '/cloudidl.workflow.RunService/ListActions',
65
- request_serializer=workflow_dot_run__service__pb2.ListActionsRequest.SerializeToString,
66
- response_deserializer=workflow_dot_run__service__pb2.ListActionsResponse.FromString,
67
- )
68
- self.WatchActions = channel.unary_stream(
69
- '/cloudidl.workflow.RunService/WatchActions',
70
- request_serializer=workflow_dot_run__service__pb2.WatchActionsRequest.SerializeToString,
71
- response_deserializer=workflow_dot_run__service__pb2.WatchActionsResponse.FromString,
72
- )
73
-
74
-
75
- class RunServiceServicer(object):
76
- """RunService provides an interface for managing runs.
77
- """
78
-
79
- def CreateRun(self, request, context):
80
- """Create a new run of the given task.
81
- """
82
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
83
- context.set_details('Method not implemented!')
84
- raise NotImplementedError('Method not implemented!')
85
-
86
- def AbortRun(self, request, context):
87
- """Abort a run.
88
- """
89
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
90
- context.set_details('Method not implemented!')
91
- raise NotImplementedError('Method not implemented!')
92
-
93
- def GetRunDetails(self, request, context):
94
- """Get detailed information about a run.
95
- """
96
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
97
- context.set_details('Method not implemented!')
98
- raise NotImplementedError('Method not implemented!')
99
-
100
- def WatchRunDetails(self, request, context):
101
- """Stream detailed information updates about a run. The call will terminate when the run reaches a terminal phase.
102
- """
103
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
104
- context.set_details('Method not implemented!')
105
- raise NotImplementedError('Method not implemented!')
106
-
107
- def GetActionDetails(self, request, context):
108
- """Get detailed information about an action.
109
- """
110
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
111
- context.set_details('Method not implemented!')
112
- raise NotImplementedError('Method not implemented!')
113
-
114
- def WatchActionDetails(self, request, context):
115
- """Stream detailed information updates about an action. The call will terminate when the action reaches a terminal phase.
116
- """
117
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
118
- context.set_details('Method not implemented!')
119
- raise NotImplementedError('Method not implemented!')
120
-
121
- def GetActionData(self, request, context):
122
- """Get input and output for an action.
123
- """
124
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
125
- context.set_details('Method not implemented!')
126
- raise NotImplementedError('Method not implemented!')
127
-
128
- def ListRuns(self, request, context):
129
- """List runs based on the provided filter criteria.
130
- """
131
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
132
- context.set_details('Method not implemented!')
133
- raise NotImplementedError('Method not implemented!')
134
-
135
- def WatchRuns(self, request, context):
136
- """Stream updates for runs based on the provided filter criteria. Responses may include newly discovered
137
- runs or updates to existing ones from the point of invocation.
138
- """
139
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
140
- context.set_details('Method not implemented!')
141
- raise NotImplementedError('Method not implemented!')
142
-
143
- def ListActions(self, request, context):
144
- """List all actions for a given run.
145
- """
146
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
147
- context.set_details('Method not implemented!')
148
- raise NotImplementedError('Method not implemented!')
149
-
150
- def WatchActions(self, request, context):
151
- """Stream updates for actions given a run. Responses may include newly discovered nested runs or updates
152
- to existing ones from the point of invocation.
153
- """
154
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
155
- context.set_details('Method not implemented!')
156
- raise NotImplementedError('Method not implemented!')
157
-
158
-
159
- def add_RunServiceServicer_to_server(servicer, server):
160
- rpc_method_handlers = {
161
- 'CreateRun': grpc.unary_unary_rpc_method_handler(
162
- servicer.CreateRun,
163
- request_deserializer=workflow_dot_run__service__pb2.CreateRunRequest.FromString,
164
- response_serializer=workflow_dot_run__service__pb2.CreateRunResponse.SerializeToString,
165
- ),
166
- 'AbortRun': grpc.unary_unary_rpc_method_handler(
167
- servicer.AbortRun,
168
- request_deserializer=workflow_dot_run__service__pb2.AbortRunRequest.FromString,
169
- response_serializer=workflow_dot_run__service__pb2.AbortRunResponse.SerializeToString,
170
- ),
171
- 'GetRunDetails': grpc.unary_unary_rpc_method_handler(
172
- servicer.GetRunDetails,
173
- request_deserializer=workflow_dot_run__service__pb2.GetRunDetailsRequest.FromString,
174
- response_serializer=workflow_dot_run__service__pb2.GetRunDetailsResponse.SerializeToString,
175
- ),
176
- 'WatchRunDetails': grpc.unary_stream_rpc_method_handler(
177
- servicer.WatchRunDetails,
178
- request_deserializer=workflow_dot_run__service__pb2.WatchRunDetailsRequest.FromString,
179
- response_serializer=workflow_dot_run__service__pb2.WatchRunDetailsResponse.SerializeToString,
180
- ),
181
- 'GetActionDetails': grpc.unary_unary_rpc_method_handler(
182
- servicer.GetActionDetails,
183
- request_deserializer=workflow_dot_run__service__pb2.GetActionDetailsRequest.FromString,
184
- response_serializer=workflow_dot_run__service__pb2.GetActionDetailsResponse.SerializeToString,
185
- ),
186
- 'WatchActionDetails': grpc.unary_stream_rpc_method_handler(
187
- servicer.WatchActionDetails,
188
- request_deserializer=workflow_dot_run__service__pb2.WatchActionDetailsRequest.FromString,
189
- response_serializer=workflow_dot_run__service__pb2.WatchActionDetailsResponse.SerializeToString,
190
- ),
191
- 'GetActionData': grpc.unary_unary_rpc_method_handler(
192
- servicer.GetActionData,
193
- request_deserializer=workflow_dot_run__service__pb2.GetActionDataRequest.FromString,
194
- response_serializer=workflow_dot_run__service__pb2.GetActionDataResponse.SerializeToString,
195
- ),
196
- 'ListRuns': grpc.unary_unary_rpc_method_handler(
197
- servicer.ListRuns,
198
- request_deserializer=workflow_dot_run__service__pb2.ListRunsRequest.FromString,
199
- response_serializer=workflow_dot_run__service__pb2.ListRunsResponse.SerializeToString,
200
- ),
201
- 'WatchRuns': grpc.unary_stream_rpc_method_handler(
202
- servicer.WatchRuns,
203
- request_deserializer=workflow_dot_run__service__pb2.WatchRunsRequest.FromString,
204
- response_serializer=workflow_dot_run__service__pb2.WatchRunsResponse.SerializeToString,
205
- ),
206
- 'ListActions': grpc.unary_unary_rpc_method_handler(
207
- servicer.ListActions,
208
- request_deserializer=workflow_dot_run__service__pb2.ListActionsRequest.FromString,
209
- response_serializer=workflow_dot_run__service__pb2.ListActionsResponse.SerializeToString,
210
- ),
211
- 'WatchActions': grpc.unary_stream_rpc_method_handler(
212
- servicer.WatchActions,
213
- request_deserializer=workflow_dot_run__service__pb2.WatchActionsRequest.FromString,
214
- response_serializer=workflow_dot_run__service__pb2.WatchActionsResponse.SerializeToString,
215
- ),
216
- }
217
- generic_handler = grpc.method_handlers_generic_handler(
218
- 'cloudidl.workflow.RunService', rpc_method_handlers)
219
- server.add_generic_rpc_handlers((generic_handler,))
220
-
221
-
222
- # This class is part of an EXPERIMENTAL API.
223
- class RunService(object):
224
- """RunService provides an interface for managing runs.
225
- """
226
-
227
- @staticmethod
228
- def CreateRun(request,
229
- target,
230
- options=(),
231
- channel_credentials=None,
232
- call_credentials=None,
233
- insecure=False,
234
- compression=None,
235
- wait_for_ready=None,
236
- timeout=None,
237
- metadata=None):
238
- return grpc.experimental.unary_unary(request, target, '/cloudidl.workflow.RunService/CreateRun',
239
- workflow_dot_run__service__pb2.CreateRunRequest.SerializeToString,
240
- workflow_dot_run__service__pb2.CreateRunResponse.FromString,
241
- options, channel_credentials,
242
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
243
-
244
- @staticmethod
245
- def AbortRun(request,
246
- target,
247
- options=(),
248
- channel_credentials=None,
249
- call_credentials=None,
250
- insecure=False,
251
- compression=None,
252
- wait_for_ready=None,
253
- timeout=None,
254
- metadata=None):
255
- return grpc.experimental.unary_unary(request, target, '/cloudidl.workflow.RunService/AbortRun',
256
- workflow_dot_run__service__pb2.AbortRunRequest.SerializeToString,
257
- workflow_dot_run__service__pb2.AbortRunResponse.FromString,
258
- options, channel_credentials,
259
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
260
-
261
- @staticmethod
262
- def GetRunDetails(request,
263
- target,
264
- options=(),
265
- channel_credentials=None,
266
- call_credentials=None,
267
- insecure=False,
268
- compression=None,
269
- wait_for_ready=None,
270
- timeout=None,
271
- metadata=None):
272
- return grpc.experimental.unary_unary(request, target, '/cloudidl.workflow.RunService/GetRunDetails',
273
- workflow_dot_run__service__pb2.GetRunDetailsRequest.SerializeToString,
274
- workflow_dot_run__service__pb2.GetRunDetailsResponse.FromString,
275
- options, channel_credentials,
276
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
277
-
278
- @staticmethod
279
- def WatchRunDetails(request,
280
- target,
281
- options=(),
282
- channel_credentials=None,
283
- call_credentials=None,
284
- insecure=False,
285
- compression=None,
286
- wait_for_ready=None,
287
- timeout=None,
288
- metadata=None):
289
- return grpc.experimental.unary_stream(request, target, '/cloudidl.workflow.RunService/WatchRunDetails',
290
- workflow_dot_run__service__pb2.WatchRunDetailsRequest.SerializeToString,
291
- workflow_dot_run__service__pb2.WatchRunDetailsResponse.FromString,
292
- options, channel_credentials,
293
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
294
-
295
- @staticmethod
296
- def GetActionDetails(request,
297
- target,
298
- options=(),
299
- channel_credentials=None,
300
- call_credentials=None,
301
- insecure=False,
302
- compression=None,
303
- wait_for_ready=None,
304
- timeout=None,
305
- metadata=None):
306
- return grpc.experimental.unary_unary(request, target, '/cloudidl.workflow.RunService/GetActionDetails',
307
- workflow_dot_run__service__pb2.GetActionDetailsRequest.SerializeToString,
308
- workflow_dot_run__service__pb2.GetActionDetailsResponse.FromString,
309
- options, channel_credentials,
310
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
311
-
312
- @staticmethod
313
- def WatchActionDetails(request,
314
- target,
315
- options=(),
316
- channel_credentials=None,
317
- call_credentials=None,
318
- insecure=False,
319
- compression=None,
320
- wait_for_ready=None,
321
- timeout=None,
322
- metadata=None):
323
- return grpc.experimental.unary_stream(request, target, '/cloudidl.workflow.RunService/WatchActionDetails',
324
- workflow_dot_run__service__pb2.WatchActionDetailsRequest.SerializeToString,
325
- workflow_dot_run__service__pb2.WatchActionDetailsResponse.FromString,
326
- options, channel_credentials,
327
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
328
-
329
- @staticmethod
330
- def GetActionData(request,
331
- target,
332
- options=(),
333
- channel_credentials=None,
334
- call_credentials=None,
335
- insecure=False,
336
- compression=None,
337
- wait_for_ready=None,
338
- timeout=None,
339
- metadata=None):
340
- return grpc.experimental.unary_unary(request, target, '/cloudidl.workflow.RunService/GetActionData',
341
- workflow_dot_run__service__pb2.GetActionDataRequest.SerializeToString,
342
- workflow_dot_run__service__pb2.GetActionDataResponse.FromString,
343
- options, channel_credentials,
344
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
345
-
346
- @staticmethod
347
- def ListRuns(request,
348
- target,
349
- options=(),
350
- channel_credentials=None,
351
- call_credentials=None,
352
- insecure=False,
353
- compression=None,
354
- wait_for_ready=None,
355
- timeout=None,
356
- metadata=None):
357
- return grpc.experimental.unary_unary(request, target, '/cloudidl.workflow.RunService/ListRuns',
358
- workflow_dot_run__service__pb2.ListRunsRequest.SerializeToString,
359
- workflow_dot_run__service__pb2.ListRunsResponse.FromString,
360
- options, channel_credentials,
361
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
362
-
363
- @staticmethod
364
- def WatchRuns(request,
365
- target,
366
- options=(),
367
- channel_credentials=None,
368
- call_credentials=None,
369
- insecure=False,
370
- compression=None,
371
- wait_for_ready=None,
372
- timeout=None,
373
- metadata=None):
374
- return grpc.experimental.unary_stream(request, target, '/cloudidl.workflow.RunService/WatchRuns',
375
- workflow_dot_run__service__pb2.WatchRunsRequest.SerializeToString,
376
- workflow_dot_run__service__pb2.WatchRunsResponse.FromString,
377
- options, channel_credentials,
378
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
379
-
380
- @staticmethod
381
- def ListActions(request,
382
- target,
383
- options=(),
384
- channel_credentials=None,
385
- call_credentials=None,
386
- insecure=False,
387
- compression=None,
388
- wait_for_ready=None,
389
- timeout=None,
390
- metadata=None):
391
- return grpc.experimental.unary_unary(request, target, '/cloudidl.workflow.RunService/ListActions',
392
- workflow_dot_run__service__pb2.ListActionsRequest.SerializeToString,
393
- workflow_dot_run__service__pb2.ListActionsResponse.FromString,
394
- options, channel_credentials,
395
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
396
-
397
- @staticmethod
398
- def WatchActions(request,
399
- target,
400
- options=(),
401
- channel_credentials=None,
402
- call_credentials=None,
403
- insecure=False,
404
- compression=None,
405
- wait_for_ready=None,
406
- timeout=None,
407
- metadata=None):
408
- return grpc.experimental.unary_stream(request, target, '/cloudidl.workflow.RunService/WatchActions',
409
- workflow_dot_run__service__pb2.WatchActionsRequest.SerializeToString,
410
- workflow_dot_run__service__pb2.WatchActionsResponse.FromString,
411
- options, channel_credentials,
412
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -1,58 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # source: workflow/state_service.proto
4
- """Generated protocol buffer code."""
5
- from google.protobuf import descriptor as _descriptor
6
- from google.protobuf import descriptor_pool as _descriptor_pool
7
- from google.protobuf import symbol_database as _symbol_database
8
- from google.protobuf.internal import builder as _builder
9
- # @@protoc_insertion_point(imports)
10
-
11
- _sym_db = _symbol_database.Default()
12
-
13
-
14
- from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2
15
- from union._protos.validate.validate import validate_pb2 as validate_dot_validate__pb2
16
- from union._protos.workflow import run_definition_pb2 as workflow_dot_run__definition__pb2
17
- from union._protos.workflow import task_definition_pb2 as workflow_dot_task__definition__pb2
18
-
19
-
20
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cworkflow/state_service.proto\x12\x11\x63loudidl.workflow\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x17validate/validate.proto\x1a\x1dworkflow/run_definition.proto\x1a\x1eworkflow/task_definition.proto\"\xc3\x01\n\x0cStoreRequest\x12J\n\taction_id\x18\x01 \x01(\x0b\x32#.cloudidl.workflow.ActionIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08\x61\x63tionId\x12\x31\n\x12parent_action_name\x18\x02 \x01(\tH\x00R\x10parentActionName\x88\x01\x01\x12\x1d\n\x05state\x18\x03 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x05stateB\x15\n\x13_parent_action_name\"\x0f\n\rStoreResponse\"\xb6\x01\n\x0bLoadRequest\x12J\n\taction_id\x18\x01 \x01(\x0b\x32#.cloudidl.workflow.ActionIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08\x61\x63tionId\x12:\n\x07task_id\x18\x02 \x01(\x0b\x32!.cloudidl.workflow.TaskIdentifierR\x06taskId\x12\x1f\n\x0binputs_hash\x18\x03 \x01(\x03R\ninputsHash\"-\n\x0cLoadResponse\x12\x1d\n\x05state\x18\x01 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01R\x05state\"n\n\x0cWatchRequest\x12O\n\x10parent_action_id\x18\x01 \x01(\x0b\x32#.cloudidl.workflow.ActionIdentifierH\x00R\x0eparentActionIdB\r\n\x06\x66ilter\x12\x03\xf8\x42\x01\"\xb0\x01\n\rWatchResponse\x12\x46\n\raction_update\x18\x01 \x01(\x0b\x32\x1f.cloudidl.workflow.ActionUpdateH\x00R\x0c\x61\x63tionUpdate\x12L\n\x0f\x63ontrol_message\x18\x02 \x01(\x0b\x32!.cloudidl.workflow.ControlMessageH\x00R\x0e\x63ontrolMessageB\t\n\x07message\",\n\x0e\x43ontrolMessage\x12\x1a\n\x08sentinel\x18\x01 \x01(\x08R\x08sentinel\"\xce\x01\n\x0c\x41\x63tionUpdate\x12J\n\taction_id\x18\x01 \x01(\x0b\x32#.cloudidl.workflow.ActionIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08\x61\x63tionId\x12.\n\x05phase\x18\x02 \x01(\x0e\x32\x18.cloudidl.workflow.PhaseR\x05phase\x12\x38\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00R\x05\x65rror\x88\x01\x01\x42\x08\n\x06_error2\xf7\x01\n\x0cStateService\x12L\n\x05Store\x12\x1f.cloudidl.workflow.StoreRequest\x1a .cloudidl.workflow.StoreResponse\"\x00\x12I\n\x04Load\x12\x1e.cloudidl.workflow.LoadRequest\x1a\x1f.cloudidl.workflow.LoadResponse\"\x00\x12N\n\x05Watch\x12\x1f.cloudidl.workflow.WatchRequest\x1a .cloudidl.workflow.WatchResponse\"\x00\x30\x01\x42\xbe\x01\n\x15\x63om.cloudidl.workflowB\x11StateServiceProtoH\x02P\x01Z+github.com/unionai/cloud/gen/pb-go/workflow\xa2\x02\x03\x43WX\xaa\x02\x11\x43loudidl.Workflow\xca\x02\x11\x43loudidl\\Workflow\xe2\x02\x1d\x43loudidl\\Workflow\\GPBMetadata\xea\x02\x12\x43loudidl::Workflowb\x06proto3')
21
-
22
- _globals = globals()
23
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
24
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'workflow.state_service_pb2', _globals)
25
- if _descriptor._USE_C_DESCRIPTORS == False:
26
- DESCRIPTOR._options = None
27
- DESCRIPTOR._serialized_options = b'\n\025com.cloudidl.workflowB\021StateServiceProtoH\002P\001Z+github.com/unionai/cloud/gen/pb-go/workflow\242\002\003CWX\252\002\021Cloudidl.Workflow\312\002\021Cloudidl\\Workflow\342\002\035Cloudidl\\Workflow\\GPBMetadata\352\002\022Cloudidl::Workflow'
28
- _STOREREQUEST.fields_by_name['action_id']._options = None
29
- _STOREREQUEST.fields_by_name['action_id']._serialized_options = b'\372B\005\212\001\002\020\001'
30
- _STOREREQUEST.fields_by_name['state']._options = None
31
- _STOREREQUEST.fields_by_name['state']._serialized_options = b'\372B\004r\002\020\001'
32
- _LOADREQUEST.fields_by_name['action_id']._options = None
33
- _LOADREQUEST.fields_by_name['action_id']._serialized_options = b'\372B\005\212\001\002\020\001'
34
- _LOADRESPONSE.fields_by_name['state']._options = None
35
- _LOADRESPONSE.fields_by_name['state']._serialized_options = b'\372B\004r\002\020\001'
36
- _WATCHREQUEST.oneofs_by_name['filter']._options = None
37
- _WATCHREQUEST.oneofs_by_name['filter']._serialized_options = b'\370B\001'
38
- _ACTIONUPDATE.fields_by_name['action_id']._options = None
39
- _ACTIONUPDATE.fields_by_name['action_id']._serialized_options = b'\372B\005\212\001\002\020\001'
40
- _globals['_STOREREQUEST']._serialized_start=171
41
- _globals['_STOREREQUEST']._serialized_end=366
42
- _globals['_STORERESPONSE']._serialized_start=368
43
- _globals['_STORERESPONSE']._serialized_end=383
44
- _globals['_LOADREQUEST']._serialized_start=386
45
- _globals['_LOADREQUEST']._serialized_end=568
46
- _globals['_LOADRESPONSE']._serialized_start=570
47
- _globals['_LOADRESPONSE']._serialized_end=615
48
- _globals['_WATCHREQUEST']._serialized_start=617
49
- _globals['_WATCHREQUEST']._serialized_end=727
50
- _globals['_WATCHRESPONSE']._serialized_start=730
51
- _globals['_WATCHRESPONSE']._serialized_end=906
52
- _globals['_CONTROLMESSAGE']._serialized_start=908
53
- _globals['_CONTROLMESSAGE']._serialized_end=952
54
- _globals['_ACTIONUPDATE']._serialized_start=955
55
- _globals['_ACTIONUPDATE']._serialized_end=1161
56
- _globals['_STATESERVICE']._serialized_start=1164
57
- _globals['_STATESERVICE']._serialized_end=1411
58
- # @@protoc_insertion_point(module_scope)
@@ -1,69 +0,0 @@
1
- from flyteidl.core import execution_pb2 as _execution_pb2
2
- from union._protos.validate.validate import validate_pb2 as _validate_pb2
3
- from union._protos.workflow import run_definition_pb2 as _run_definition_pb2
4
- from union._protos.workflow import task_definition_pb2 as _task_definition_pb2
5
- from google.protobuf import descriptor as _descriptor
6
- from google.protobuf import message as _message
7
- from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
8
-
9
- DESCRIPTOR: _descriptor.FileDescriptor
10
-
11
- class StoreRequest(_message.Message):
12
- __slots__ = ["action_id", "parent_action_name", "state"]
13
- ACTION_ID_FIELD_NUMBER: _ClassVar[int]
14
- PARENT_ACTION_NAME_FIELD_NUMBER: _ClassVar[int]
15
- STATE_FIELD_NUMBER: _ClassVar[int]
16
- action_id: _run_definition_pb2.ActionIdentifier
17
- parent_action_name: str
18
- state: str
19
- def __init__(self, action_id: _Optional[_Union[_run_definition_pb2.ActionIdentifier, _Mapping]] = ..., parent_action_name: _Optional[str] = ..., state: _Optional[str] = ...) -> None: ...
20
-
21
- class StoreResponse(_message.Message):
22
- __slots__ = []
23
- def __init__(self) -> None: ...
24
-
25
- class LoadRequest(_message.Message):
26
- __slots__ = ["action_id", "task_id", "inputs_hash"]
27
- ACTION_ID_FIELD_NUMBER: _ClassVar[int]
28
- TASK_ID_FIELD_NUMBER: _ClassVar[int]
29
- INPUTS_HASH_FIELD_NUMBER: _ClassVar[int]
30
- action_id: _run_definition_pb2.ActionIdentifier
31
- task_id: _task_definition_pb2.TaskIdentifier
32
- inputs_hash: int
33
- def __init__(self, action_id: _Optional[_Union[_run_definition_pb2.ActionIdentifier, _Mapping]] = ..., task_id: _Optional[_Union[_task_definition_pb2.TaskIdentifier, _Mapping]] = ..., inputs_hash: _Optional[int] = ...) -> None: ...
34
-
35
- class LoadResponse(_message.Message):
36
- __slots__ = ["state"]
37
- STATE_FIELD_NUMBER: _ClassVar[int]
38
- state: str
39
- def __init__(self, state: _Optional[str] = ...) -> None: ...
40
-
41
- class WatchRequest(_message.Message):
42
- __slots__ = ["parent_action_id"]
43
- PARENT_ACTION_ID_FIELD_NUMBER: _ClassVar[int]
44
- parent_action_id: _run_definition_pb2.ActionIdentifier
45
- def __init__(self, parent_action_id: _Optional[_Union[_run_definition_pb2.ActionIdentifier, _Mapping]] = ...) -> None: ...
46
-
47
- class WatchResponse(_message.Message):
48
- __slots__ = ["action_update", "control_message"]
49
- ACTION_UPDATE_FIELD_NUMBER: _ClassVar[int]
50
- CONTROL_MESSAGE_FIELD_NUMBER: _ClassVar[int]
51
- action_update: ActionUpdate
52
- control_message: ControlMessage
53
- def __init__(self, action_update: _Optional[_Union[ActionUpdate, _Mapping]] = ..., control_message: _Optional[_Union[ControlMessage, _Mapping]] = ...) -> None: ...
54
-
55
- class ControlMessage(_message.Message):
56
- __slots__ = ["sentinel"]
57
- SENTINEL_FIELD_NUMBER: _ClassVar[int]
58
- sentinel: bool
59
- def __init__(self, sentinel: bool = ...) -> None: ...
60
-
61
- class ActionUpdate(_message.Message):
62
- __slots__ = ["action_id", "phase", "error"]
63
- ACTION_ID_FIELD_NUMBER: _ClassVar[int]
64
- PHASE_FIELD_NUMBER: _ClassVar[int]
65
- ERROR_FIELD_NUMBER: _ClassVar[int]
66
- action_id: _run_definition_pb2.ActionIdentifier
67
- phase: _run_definition_pb2.Phase
68
- error: _execution_pb2.ExecutionError
69
- def __init__(self, action_id: _Optional[_Union[_run_definition_pb2.ActionIdentifier, _Mapping]] = ..., phase: _Optional[_Union[_run_definition_pb2.Phase, str]] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ...) -> None: ...