flyte 0.0.1b0__py3-none-any.whl → 0.0.1b1__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 (209) hide show
  1. flyte/_cli/_common.py +12 -0
  2. {union → flyte}/_cli/_params.py +106 -147
  3. flyte/_cli/_run.py +24 -2
  4. flyte/_cli/main.py +28 -2
  5. flyte/_image.py +11 -10
  6. flyte/_initialize.py +24 -15
  7. flyte/_internal/runtime/convert.py +6 -0
  8. flyte/_run.py +0 -1
  9. flyte/_version.py +2 -2
  10. flyte/config/__init__.py +168 -0
  11. flyte/config/_config.py +196 -0
  12. flyte/config/_internal.py +64 -0
  13. flyte/remote/_console.py +1 -1
  14. flyte/types/_type_engine.py +4 -3
  15. {flyte-0.0.1b0.dist-info → flyte-0.0.1b1.dist-info}/METADATA +1 -1
  16. flyte-0.0.1b1.dist-info/RECORD +204 -0
  17. flyte-0.0.1b0.dist-info/RECORD +0 -390
  18. union/__init__.py +0 -54
  19. union/_api_commons.py +0 -3
  20. union/_bin/__init__.py +0 -0
  21. union/_bin/runtime.py +0 -113
  22. union/_build.py +0 -25
  23. union/_cache/__init__.py +0 -12
  24. union/_cache/cache.py +0 -141
  25. union/_cache/defaults.py +0 -9
  26. union/_cache/policy_function_body.py +0 -42
  27. union/_cli/__init__.py +0 -0
  28. union/_cli/_common.py +0 -263
  29. union/_cli/_create.py +0 -40
  30. union/_cli/_delete.py +0 -23
  31. union/_cli/_deploy.py +0 -120
  32. union/_cli/_get.py +0 -162
  33. union/_cli/_run.py +0 -150
  34. union/_cli/main.py +0 -72
  35. union/_code_bundle/__init__.py +0 -8
  36. union/_code_bundle/_ignore.py +0 -113
  37. union/_code_bundle/_packaging.py +0 -187
  38. union/_code_bundle/_utils.py +0 -342
  39. union/_code_bundle/bundle.py +0 -176
  40. union/_context.py +0 -146
  41. union/_datastructures.py +0 -295
  42. union/_deploy.py +0 -185
  43. union/_doc.py +0 -29
  44. union/_docstring.py +0 -26
  45. union/_environment.py +0 -43
  46. union/_group.py +0 -31
  47. union/_hash.py +0 -23
  48. union/_image.py +0 -760
  49. union/_initialize.py +0 -585
  50. union/_interface.py +0 -84
  51. union/_internal/__init__.py +0 -3
  52. union/_internal/controllers/__init__.py +0 -77
  53. union/_internal/controllers/_local_controller.py +0 -77
  54. union/_internal/controllers/pbhash.py +0 -39
  55. union/_internal/controllers/remote/__init__.py +0 -40
  56. union/_internal/controllers/remote/_action.py +0 -131
  57. union/_internal/controllers/remote/_client.py +0 -43
  58. union/_internal/controllers/remote/_controller.py +0 -169
  59. union/_internal/controllers/remote/_core.py +0 -341
  60. union/_internal/controllers/remote/_informer.py +0 -260
  61. union/_internal/controllers/remote/_service_protocol.py +0 -44
  62. union/_internal/imagebuild/__init__.py +0 -11
  63. union/_internal/imagebuild/docker_builder.py +0 -416
  64. union/_internal/imagebuild/image_builder.py +0 -243
  65. union/_internal/imagebuild/remote_builder.py +0 -0
  66. union/_internal/resolvers/__init__.py +0 -0
  67. union/_internal/resolvers/_task_module.py +0 -31
  68. union/_internal/resolvers/common.py +0 -24
  69. union/_internal/resolvers/default.py +0 -27
  70. union/_internal/runtime/__init__.py +0 -0
  71. union/_internal/runtime/convert.py +0 -163
  72. union/_internal/runtime/entrypoints.py +0 -121
  73. union/_internal/runtime/io.py +0 -136
  74. union/_internal/runtime/resources_serde.py +0 -134
  75. union/_internal/runtime/task_serde.py +0 -202
  76. union/_internal/runtime/taskrunner.py +0 -179
  77. union/_internal/runtime/types_serde.py +0 -53
  78. union/_logging.py +0 -124
  79. union/_protos/__init__.py +0 -0
  80. union/_protos/common/authorization_pb2.py +0 -66
  81. union/_protos/common/authorization_pb2.pyi +0 -106
  82. union/_protos/common/authorization_pb2_grpc.py +0 -4
  83. union/_protos/common/identifier_pb2.py +0 -71
  84. union/_protos/common/identifier_pb2.pyi +0 -82
  85. union/_protos/common/identifier_pb2_grpc.py +0 -4
  86. union/_protos/common/identity_pb2.py +0 -48
  87. union/_protos/common/identity_pb2.pyi +0 -72
  88. union/_protos/common/identity_pb2_grpc.py +0 -4
  89. union/_protos/common/list_pb2.py +0 -36
  90. union/_protos/common/list_pb2.pyi +0 -69
  91. union/_protos/common/list_pb2_grpc.py +0 -4
  92. union/_protos/common/policy_pb2.py +0 -37
  93. union/_protos/common/policy_pb2.pyi +0 -27
  94. union/_protos/common/policy_pb2_grpc.py +0 -4
  95. union/_protos/common/role_pb2.py +0 -37
  96. union/_protos/common/role_pb2.pyi +0 -51
  97. union/_protos/common/role_pb2_grpc.py +0 -4
  98. union/_protos/common/runtime_version_pb2.py +0 -28
  99. union/_protos/common/runtime_version_pb2.pyi +0 -24
  100. union/_protos/common/runtime_version_pb2_grpc.py +0 -4
  101. union/_protos/logs/dataplane/payload_pb2.py +0 -96
  102. union/_protos/logs/dataplane/payload_pb2.pyi +0 -168
  103. union/_protos/logs/dataplane/payload_pb2_grpc.py +0 -4
  104. union/_protos/secret/definition_pb2.py +0 -49
  105. union/_protos/secret/definition_pb2.pyi +0 -93
  106. union/_protos/secret/definition_pb2_grpc.py +0 -4
  107. union/_protos/secret/payload_pb2.py +0 -62
  108. union/_protos/secret/payload_pb2.pyi +0 -94
  109. union/_protos/secret/payload_pb2_grpc.py +0 -4
  110. union/_protos/secret/secret_pb2.py +0 -38
  111. union/_protos/secret/secret_pb2.pyi +0 -6
  112. union/_protos/secret/secret_pb2_grpc.py +0 -198
  113. union/_protos/validate/validate/validate_pb2.py +0 -76
  114. union/_protos/workflow/node_execution_service_pb2.py +0 -26
  115. union/_protos/workflow/node_execution_service_pb2.pyi +0 -4
  116. union/_protos/workflow/node_execution_service_pb2_grpc.py +0 -32
  117. union/_protos/workflow/queue_service_pb2.py +0 -75
  118. union/_protos/workflow/queue_service_pb2.pyi +0 -103
  119. union/_protos/workflow/queue_service_pb2_grpc.py +0 -172
  120. union/_protos/workflow/run_definition_pb2.py +0 -100
  121. union/_protos/workflow/run_definition_pb2.pyi +0 -256
  122. union/_protos/workflow/run_definition_pb2_grpc.py +0 -4
  123. union/_protos/workflow/run_logs_service_pb2.py +0 -41
  124. union/_protos/workflow/run_logs_service_pb2.pyi +0 -28
  125. union/_protos/workflow/run_logs_service_pb2_grpc.py +0 -69
  126. union/_protos/workflow/run_service_pb2.py +0 -133
  127. union/_protos/workflow/run_service_pb2.pyi +0 -173
  128. union/_protos/workflow/run_service_pb2_grpc.py +0 -412
  129. union/_protos/workflow/state_service_pb2.py +0 -58
  130. union/_protos/workflow/state_service_pb2.pyi +0 -69
  131. union/_protos/workflow/state_service_pb2_grpc.py +0 -138
  132. union/_protos/workflow/task_definition_pb2.py +0 -72
  133. union/_protos/workflow/task_definition_pb2.pyi +0 -65
  134. union/_protos/workflow/task_definition_pb2_grpc.py +0 -4
  135. union/_protos/workflow/task_service_pb2.py +0 -44
  136. union/_protos/workflow/task_service_pb2.pyi +0 -31
  137. union/_protos/workflow/task_service_pb2_grpc.py +0 -104
  138. union/_resources.py +0 -226
  139. union/_retry.py +0 -32
  140. union/_reusable_environment.py +0 -25
  141. union/_run.py +0 -374
  142. union/_secret.py +0 -61
  143. union/_task.py +0 -354
  144. union/_task_environment.py +0 -186
  145. union/_timeout.py +0 -47
  146. union/_tools.py +0 -27
  147. union/_utils/__init__.py +0 -11
  148. union/_utils/asyn.py +0 -119
  149. union/_utils/file_handling.py +0 -71
  150. union/_utils/helpers.py +0 -46
  151. union/_utils/lazy_module.py +0 -54
  152. union/_utils/uv_script_parser.py +0 -49
  153. union/_version.py +0 -21
  154. union/connectors/__init__.py +0 -0
  155. union/errors.py +0 -128
  156. union/extras/__init__.py +0 -5
  157. union/extras/_container.py +0 -263
  158. union/io/__init__.py +0 -11
  159. union/io/_dataframe.py +0 -0
  160. union/io/_dir.py +0 -425
  161. union/io/_file.py +0 -418
  162. union/io/pickle/__init__.py +0 -0
  163. union/io/pickle/transformer.py +0 -117
  164. union/io/structured_dataset/__init__.py +0 -122
  165. union/io/structured_dataset/basic_dfs.py +0 -219
  166. union/io/structured_dataset/structured_dataset.py +0 -1057
  167. union/py.typed +0 -0
  168. union/remote/__init__.py +0 -23
  169. union/remote/_client/__init__.py +0 -0
  170. union/remote/_client/_protocols.py +0 -129
  171. union/remote/_client/auth/__init__.py +0 -12
  172. union/remote/_client/auth/_authenticators/__init__.py +0 -0
  173. union/remote/_client/auth/_authenticators/base.py +0 -391
  174. union/remote/_client/auth/_authenticators/client_credentials.py +0 -73
  175. union/remote/_client/auth/_authenticators/device_code.py +0 -120
  176. union/remote/_client/auth/_authenticators/external_command.py +0 -77
  177. union/remote/_client/auth/_authenticators/factory.py +0 -200
  178. union/remote/_client/auth/_authenticators/pkce.py +0 -515
  179. union/remote/_client/auth/_channel.py +0 -184
  180. union/remote/_client/auth/_client_config.py +0 -83
  181. union/remote/_client/auth/_default_html.py +0 -32
  182. union/remote/_client/auth/_grpc_utils/__init__.py +0 -0
  183. union/remote/_client/auth/_grpc_utils/auth_interceptor.py +0 -204
  184. union/remote/_client/auth/_grpc_utils/default_metadata_interceptor.py +0 -144
  185. union/remote/_client/auth/_keyring.py +0 -154
  186. union/remote/_client/auth/_token_client.py +0 -258
  187. union/remote/_client/auth/errors.py +0 -16
  188. union/remote/_client/controlplane.py +0 -86
  189. union/remote/_data.py +0 -149
  190. union/remote/_logs.py +0 -74
  191. union/remote/_project.py +0 -86
  192. union/remote/_run.py +0 -820
  193. union/remote/_secret.py +0 -132
  194. union/remote/_task.py +0 -193
  195. union/report/__init__.py +0 -3
  196. union/report/_report.py +0 -178
  197. union/report/_template.html +0 -124
  198. union/storage/__init__.py +0 -24
  199. union/storage/_remote_fs.py +0 -34
  200. union/storage/_storage.py +0 -247
  201. union/storage/_utils.py +0 -5
  202. union/types/__init__.py +0 -11
  203. union/types/_renderer.py +0 -162
  204. union/types/_string_literals.py +0 -120
  205. union/types/_type_engine.py +0 -2131
  206. union/types/_utils.py +0 -80
  207. {flyte-0.0.1b0.dist-info → flyte-0.0.1b1.dist-info}/WHEEL +0 -0
  208. {flyte-0.0.1b0.dist-info → flyte-0.0.1b1.dist-info}/entry_points.txt +0 -0
  209. {flyte-0.0.1b0.dist-info → flyte-0.0.1b1.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: ...