flyte 0.0.1b0__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 (390) hide show
  1. flyte/__init__.py +62 -0
  2. flyte/_api_commons.py +3 -0
  3. flyte/_bin/__init__.py +0 -0
  4. flyte/_bin/runtime.py +126 -0
  5. flyte/_build.py +25 -0
  6. flyte/_cache/__init__.py +12 -0
  7. flyte/_cache/cache.py +146 -0
  8. flyte/_cache/defaults.py +9 -0
  9. flyte/_cache/policy_function_body.py +42 -0
  10. flyte/_cli/__init__.py +0 -0
  11. flyte/_cli/_common.py +287 -0
  12. flyte/_cli/_create.py +42 -0
  13. flyte/_cli/_delete.py +23 -0
  14. flyte/_cli/_deploy.py +140 -0
  15. flyte/_cli/_get.py +235 -0
  16. flyte/_cli/_run.py +152 -0
  17. flyte/_cli/main.py +72 -0
  18. flyte/_code_bundle/__init__.py +8 -0
  19. flyte/_code_bundle/_ignore.py +113 -0
  20. flyte/_code_bundle/_packaging.py +187 -0
  21. flyte/_code_bundle/_utils.py +339 -0
  22. flyte/_code_bundle/bundle.py +178 -0
  23. flyte/_context.py +146 -0
  24. flyte/_datastructures.py +342 -0
  25. flyte/_deploy.py +202 -0
  26. flyte/_doc.py +29 -0
  27. flyte/_docstring.py +32 -0
  28. flyte/_environment.py +43 -0
  29. flyte/_group.py +31 -0
  30. flyte/_hash.py +23 -0
  31. flyte/_image.py +760 -0
  32. flyte/_initialize.py +634 -0
  33. flyte/_interface.py +84 -0
  34. flyte/_internal/__init__.py +3 -0
  35. flyte/_internal/controllers/__init__.py +115 -0
  36. flyte/_internal/controllers/_local_controller.py +118 -0
  37. flyte/_internal/controllers/_trace.py +40 -0
  38. flyte/_internal/controllers/pbhash.py +39 -0
  39. flyte/_internal/controllers/remote/__init__.py +40 -0
  40. flyte/_internal/controllers/remote/_action.py +141 -0
  41. flyte/_internal/controllers/remote/_client.py +43 -0
  42. flyte/_internal/controllers/remote/_controller.py +361 -0
  43. flyte/_internal/controllers/remote/_core.py +402 -0
  44. flyte/_internal/controllers/remote/_informer.py +361 -0
  45. flyte/_internal/controllers/remote/_service_protocol.py +50 -0
  46. flyte/_internal/imagebuild/__init__.py +11 -0
  47. flyte/_internal/imagebuild/docker_builder.py +416 -0
  48. flyte/_internal/imagebuild/image_builder.py +241 -0
  49. flyte/_internal/imagebuild/remote_builder.py +0 -0
  50. flyte/_internal/resolvers/__init__.py +0 -0
  51. flyte/_internal/resolvers/_task_module.py +54 -0
  52. flyte/_internal/resolvers/common.py +31 -0
  53. flyte/_internal/resolvers/default.py +28 -0
  54. flyte/_internal/runtime/__init__.py +0 -0
  55. flyte/_internal/runtime/convert.py +199 -0
  56. flyte/_internal/runtime/entrypoints.py +135 -0
  57. flyte/_internal/runtime/io.py +136 -0
  58. flyte/_internal/runtime/resources_serde.py +138 -0
  59. flyte/_internal/runtime/task_serde.py +210 -0
  60. flyte/_internal/runtime/taskrunner.py +190 -0
  61. flyte/_internal/runtime/types_serde.py +54 -0
  62. flyte/_logging.py +124 -0
  63. flyte/_protos/__init__.py +0 -0
  64. flyte/_protos/common/authorization_pb2.py +66 -0
  65. flyte/_protos/common/authorization_pb2.pyi +108 -0
  66. flyte/_protos/common/authorization_pb2_grpc.py +4 -0
  67. flyte/_protos/common/identifier_pb2.py +71 -0
  68. flyte/_protos/common/identifier_pb2.pyi +82 -0
  69. flyte/_protos/common/identifier_pb2_grpc.py +4 -0
  70. flyte/_protos/common/identity_pb2.py +48 -0
  71. flyte/_protos/common/identity_pb2.pyi +72 -0
  72. flyte/_protos/common/identity_pb2_grpc.py +4 -0
  73. flyte/_protos/common/list_pb2.py +36 -0
  74. flyte/_protos/common/list_pb2.pyi +69 -0
  75. flyte/_protos/common/list_pb2_grpc.py +4 -0
  76. flyte/_protos/common/policy_pb2.py +37 -0
  77. flyte/_protos/common/policy_pb2.pyi +27 -0
  78. flyte/_protos/common/policy_pb2_grpc.py +4 -0
  79. flyte/_protos/common/role_pb2.py +37 -0
  80. flyte/_protos/common/role_pb2.pyi +53 -0
  81. flyte/_protos/common/role_pb2_grpc.py +4 -0
  82. flyte/_protos/common/runtime_version_pb2.py +28 -0
  83. flyte/_protos/common/runtime_version_pb2.pyi +24 -0
  84. flyte/_protos/common/runtime_version_pb2_grpc.py +4 -0
  85. flyte/_protos/logs/dataplane/payload_pb2.py +96 -0
  86. flyte/_protos/logs/dataplane/payload_pb2.pyi +168 -0
  87. flyte/_protos/logs/dataplane/payload_pb2_grpc.py +4 -0
  88. flyte/_protos/secret/definition_pb2.py +49 -0
  89. flyte/_protos/secret/definition_pb2.pyi +93 -0
  90. flyte/_protos/secret/definition_pb2_grpc.py +4 -0
  91. flyte/_protos/secret/payload_pb2.py +62 -0
  92. flyte/_protos/secret/payload_pb2.pyi +94 -0
  93. flyte/_protos/secret/payload_pb2_grpc.py +4 -0
  94. flyte/_protos/secret/secret_pb2.py +38 -0
  95. flyte/_protos/secret/secret_pb2.pyi +6 -0
  96. flyte/_protos/secret/secret_pb2_grpc.py +198 -0
  97. flyte/_protos/secret/secret_pb2_grpc_grpc.py +198 -0
  98. flyte/_protos/validate/validate/validate_pb2.py +76 -0
  99. flyte/_protos/workflow/node_execution_service_pb2.py +26 -0
  100. flyte/_protos/workflow/node_execution_service_pb2.pyi +4 -0
  101. flyte/_protos/workflow/node_execution_service_pb2_grpc.py +32 -0
  102. flyte/_protos/workflow/queue_service_pb2.py +106 -0
  103. flyte/_protos/workflow/queue_service_pb2.pyi +141 -0
  104. flyte/_protos/workflow/queue_service_pb2_grpc.py +172 -0
  105. flyte/_protos/workflow/run_definition_pb2.py +128 -0
  106. flyte/_protos/workflow/run_definition_pb2.pyi +310 -0
  107. flyte/_protos/workflow/run_definition_pb2_grpc.py +4 -0
  108. flyte/_protos/workflow/run_logs_service_pb2.py +41 -0
  109. flyte/_protos/workflow/run_logs_service_pb2.pyi +28 -0
  110. flyte/_protos/workflow/run_logs_service_pb2_grpc.py +69 -0
  111. flyte/_protos/workflow/run_service_pb2.py +133 -0
  112. flyte/_protos/workflow/run_service_pb2.pyi +175 -0
  113. flyte/_protos/workflow/run_service_pb2_grpc.py +412 -0
  114. flyte/_protos/workflow/state_service_pb2.py +58 -0
  115. flyte/_protos/workflow/state_service_pb2.pyi +71 -0
  116. flyte/_protos/workflow/state_service_pb2_grpc.py +138 -0
  117. flyte/_protos/workflow/task_definition_pb2.py +72 -0
  118. flyte/_protos/workflow/task_definition_pb2.pyi +65 -0
  119. flyte/_protos/workflow/task_definition_pb2_grpc.py +4 -0
  120. flyte/_protos/workflow/task_service_pb2.py +44 -0
  121. flyte/_protos/workflow/task_service_pb2.pyi +31 -0
  122. flyte/_protos/workflow/task_service_pb2_grpc.py +104 -0
  123. flyte/_resources.py +226 -0
  124. flyte/_retry.py +32 -0
  125. flyte/_reusable_environment.py +25 -0
  126. flyte/_run.py +411 -0
  127. flyte/_secret.py +61 -0
  128. flyte/_task.py +367 -0
  129. flyte/_task_environment.py +200 -0
  130. flyte/_timeout.py +47 -0
  131. flyte/_tools.py +27 -0
  132. flyte/_trace.py +128 -0
  133. flyte/_utils/__init__.py +20 -0
  134. flyte/_utils/asyn.py +119 -0
  135. flyte/_utils/coro_management.py +25 -0
  136. flyte/_utils/file_handling.py +72 -0
  137. flyte/_utils/helpers.py +108 -0
  138. flyte/_utils/lazy_module.py +54 -0
  139. flyte/_utils/uv_script_parser.py +49 -0
  140. flyte/_version.py +21 -0
  141. flyte/connectors/__init__.py +0 -0
  142. flyte/errors.py +143 -0
  143. flyte/extras/__init__.py +5 -0
  144. flyte/extras/_container.py +273 -0
  145. flyte/io/__init__.py +11 -0
  146. flyte/io/_dataframe.py +0 -0
  147. flyte/io/_dir.py +448 -0
  148. flyte/io/_file.py +468 -0
  149. flyte/io/pickle/__init__.py +0 -0
  150. flyte/io/pickle/transformer.py +117 -0
  151. flyte/io/structured_dataset/__init__.py +129 -0
  152. flyte/io/structured_dataset/basic_dfs.py +219 -0
  153. flyte/io/structured_dataset/structured_dataset.py +1061 -0
  154. flyte/py.typed +0 -0
  155. flyte/remote/__init__.py +25 -0
  156. flyte/remote/_client/__init__.py +0 -0
  157. flyte/remote/_client/_protocols.py +131 -0
  158. flyte/remote/_client/auth/__init__.py +12 -0
  159. flyte/remote/_client/auth/_authenticators/__init__.py +0 -0
  160. flyte/remote/_client/auth/_authenticators/base.py +397 -0
  161. flyte/remote/_client/auth/_authenticators/client_credentials.py +73 -0
  162. flyte/remote/_client/auth/_authenticators/device_code.py +118 -0
  163. flyte/remote/_client/auth/_authenticators/external_command.py +79 -0
  164. flyte/remote/_client/auth/_authenticators/factory.py +200 -0
  165. flyte/remote/_client/auth/_authenticators/pkce.py +516 -0
  166. flyte/remote/_client/auth/_channel.py +184 -0
  167. flyte/remote/_client/auth/_client_config.py +83 -0
  168. flyte/remote/_client/auth/_default_html.py +32 -0
  169. flyte/remote/_client/auth/_grpc_utils/__init__.py +0 -0
  170. flyte/remote/_client/auth/_grpc_utils/auth_interceptor.py +288 -0
  171. flyte/remote/_client/auth/_grpc_utils/default_metadata_interceptor.py +151 -0
  172. flyte/remote/_client/auth/_keyring.py +143 -0
  173. flyte/remote/_client/auth/_token_client.py +260 -0
  174. flyte/remote/_client/auth/errors.py +16 -0
  175. flyte/remote/_client/controlplane.py +95 -0
  176. flyte/remote/_console.py +18 -0
  177. flyte/remote/_data.py +155 -0
  178. flyte/remote/_logs.py +116 -0
  179. flyte/remote/_project.py +86 -0
  180. flyte/remote/_run.py +873 -0
  181. flyte/remote/_secret.py +132 -0
  182. flyte/remote/_task.py +227 -0
  183. flyte/report/__init__.py +3 -0
  184. flyte/report/_report.py +178 -0
  185. flyte/report/_template.html +124 -0
  186. flyte/storage/__init__.py +24 -0
  187. flyte/storage/_remote_fs.py +34 -0
  188. flyte/storage/_storage.py +251 -0
  189. flyte/storage/_utils.py +5 -0
  190. flyte/types/__init__.py +13 -0
  191. flyte/types/_interface.py +25 -0
  192. flyte/types/_renderer.py +162 -0
  193. flyte/types/_string_literals.py +120 -0
  194. flyte/types/_type_engine.py +2210 -0
  195. flyte/types/_utils.py +80 -0
  196. flyte-0.0.1b0.dist-info/METADATA +179 -0
  197. flyte-0.0.1b0.dist-info/RECORD +390 -0
  198. flyte-0.0.1b0.dist-info/WHEEL +5 -0
  199. flyte-0.0.1b0.dist-info/entry_points.txt +3 -0
  200. flyte-0.0.1b0.dist-info/top_level.txt +1 -0
  201. union/__init__.py +54 -0
  202. union/_api_commons.py +3 -0
  203. union/_bin/__init__.py +0 -0
  204. union/_bin/runtime.py +113 -0
  205. union/_build.py +25 -0
  206. union/_cache/__init__.py +12 -0
  207. union/_cache/cache.py +141 -0
  208. union/_cache/defaults.py +9 -0
  209. union/_cache/policy_function_body.py +42 -0
  210. union/_cli/__init__.py +0 -0
  211. union/_cli/_common.py +263 -0
  212. union/_cli/_create.py +40 -0
  213. union/_cli/_delete.py +23 -0
  214. union/_cli/_deploy.py +120 -0
  215. union/_cli/_get.py +162 -0
  216. union/_cli/_params.py +579 -0
  217. union/_cli/_run.py +150 -0
  218. union/_cli/main.py +72 -0
  219. union/_code_bundle/__init__.py +8 -0
  220. union/_code_bundle/_ignore.py +113 -0
  221. union/_code_bundle/_packaging.py +187 -0
  222. union/_code_bundle/_utils.py +342 -0
  223. union/_code_bundle/bundle.py +176 -0
  224. union/_context.py +146 -0
  225. union/_datastructures.py +295 -0
  226. union/_deploy.py +185 -0
  227. union/_doc.py +29 -0
  228. union/_docstring.py +26 -0
  229. union/_environment.py +43 -0
  230. union/_group.py +31 -0
  231. union/_hash.py +23 -0
  232. union/_image.py +760 -0
  233. union/_initialize.py +585 -0
  234. union/_interface.py +84 -0
  235. union/_internal/__init__.py +3 -0
  236. union/_internal/controllers/__init__.py +77 -0
  237. union/_internal/controllers/_local_controller.py +77 -0
  238. union/_internal/controllers/pbhash.py +39 -0
  239. union/_internal/controllers/remote/__init__.py +40 -0
  240. union/_internal/controllers/remote/_action.py +131 -0
  241. union/_internal/controllers/remote/_client.py +43 -0
  242. union/_internal/controllers/remote/_controller.py +169 -0
  243. union/_internal/controllers/remote/_core.py +341 -0
  244. union/_internal/controllers/remote/_informer.py +260 -0
  245. union/_internal/controllers/remote/_service_protocol.py +44 -0
  246. union/_internal/imagebuild/__init__.py +11 -0
  247. union/_internal/imagebuild/docker_builder.py +416 -0
  248. union/_internal/imagebuild/image_builder.py +243 -0
  249. union/_internal/imagebuild/remote_builder.py +0 -0
  250. union/_internal/resolvers/__init__.py +0 -0
  251. union/_internal/resolvers/_task_module.py +31 -0
  252. union/_internal/resolvers/common.py +24 -0
  253. union/_internal/resolvers/default.py +27 -0
  254. union/_internal/runtime/__init__.py +0 -0
  255. union/_internal/runtime/convert.py +163 -0
  256. union/_internal/runtime/entrypoints.py +121 -0
  257. union/_internal/runtime/io.py +136 -0
  258. union/_internal/runtime/resources_serde.py +134 -0
  259. union/_internal/runtime/task_serde.py +202 -0
  260. union/_internal/runtime/taskrunner.py +179 -0
  261. union/_internal/runtime/types_serde.py +53 -0
  262. union/_logging.py +124 -0
  263. union/_protos/__init__.py +0 -0
  264. union/_protos/common/authorization_pb2.py +66 -0
  265. union/_protos/common/authorization_pb2.pyi +106 -0
  266. union/_protos/common/authorization_pb2_grpc.py +4 -0
  267. union/_protos/common/identifier_pb2.py +71 -0
  268. union/_protos/common/identifier_pb2.pyi +82 -0
  269. union/_protos/common/identifier_pb2_grpc.py +4 -0
  270. union/_protos/common/identity_pb2.py +48 -0
  271. union/_protos/common/identity_pb2.pyi +72 -0
  272. union/_protos/common/identity_pb2_grpc.py +4 -0
  273. union/_protos/common/list_pb2.py +36 -0
  274. union/_protos/common/list_pb2.pyi +69 -0
  275. union/_protos/common/list_pb2_grpc.py +4 -0
  276. union/_protos/common/policy_pb2.py +37 -0
  277. union/_protos/common/policy_pb2.pyi +27 -0
  278. union/_protos/common/policy_pb2_grpc.py +4 -0
  279. union/_protos/common/role_pb2.py +37 -0
  280. union/_protos/common/role_pb2.pyi +51 -0
  281. union/_protos/common/role_pb2_grpc.py +4 -0
  282. union/_protos/common/runtime_version_pb2.py +28 -0
  283. union/_protos/common/runtime_version_pb2.pyi +24 -0
  284. union/_protos/common/runtime_version_pb2_grpc.py +4 -0
  285. union/_protos/logs/dataplane/payload_pb2.py +96 -0
  286. union/_protos/logs/dataplane/payload_pb2.pyi +168 -0
  287. union/_protos/logs/dataplane/payload_pb2_grpc.py +4 -0
  288. union/_protos/secret/definition_pb2.py +49 -0
  289. union/_protos/secret/definition_pb2.pyi +93 -0
  290. union/_protos/secret/definition_pb2_grpc.py +4 -0
  291. union/_protos/secret/payload_pb2.py +62 -0
  292. union/_protos/secret/payload_pb2.pyi +94 -0
  293. union/_protos/secret/payload_pb2_grpc.py +4 -0
  294. union/_protos/secret/secret_pb2.py +38 -0
  295. union/_protos/secret/secret_pb2.pyi +6 -0
  296. union/_protos/secret/secret_pb2_grpc.py +198 -0
  297. union/_protos/validate/validate/validate_pb2.py +76 -0
  298. union/_protos/workflow/node_execution_service_pb2.py +26 -0
  299. union/_protos/workflow/node_execution_service_pb2.pyi +4 -0
  300. union/_protos/workflow/node_execution_service_pb2_grpc.py +32 -0
  301. union/_protos/workflow/queue_service_pb2.py +75 -0
  302. union/_protos/workflow/queue_service_pb2.pyi +103 -0
  303. union/_protos/workflow/queue_service_pb2_grpc.py +172 -0
  304. union/_protos/workflow/run_definition_pb2.py +100 -0
  305. union/_protos/workflow/run_definition_pb2.pyi +256 -0
  306. union/_protos/workflow/run_definition_pb2_grpc.py +4 -0
  307. union/_protos/workflow/run_logs_service_pb2.py +41 -0
  308. union/_protos/workflow/run_logs_service_pb2.pyi +28 -0
  309. union/_protos/workflow/run_logs_service_pb2_grpc.py +69 -0
  310. union/_protos/workflow/run_service_pb2.py +133 -0
  311. union/_protos/workflow/run_service_pb2.pyi +173 -0
  312. union/_protos/workflow/run_service_pb2_grpc.py +412 -0
  313. union/_protos/workflow/state_service_pb2.py +58 -0
  314. union/_protos/workflow/state_service_pb2.pyi +69 -0
  315. union/_protos/workflow/state_service_pb2_grpc.py +138 -0
  316. union/_protos/workflow/task_definition_pb2.py +72 -0
  317. union/_protos/workflow/task_definition_pb2.pyi +65 -0
  318. union/_protos/workflow/task_definition_pb2_grpc.py +4 -0
  319. union/_protos/workflow/task_service_pb2.py +44 -0
  320. union/_protos/workflow/task_service_pb2.pyi +31 -0
  321. union/_protos/workflow/task_service_pb2_grpc.py +104 -0
  322. union/_resources.py +226 -0
  323. union/_retry.py +32 -0
  324. union/_reusable_environment.py +25 -0
  325. union/_run.py +374 -0
  326. union/_secret.py +61 -0
  327. union/_task.py +354 -0
  328. union/_task_environment.py +186 -0
  329. union/_timeout.py +47 -0
  330. union/_tools.py +27 -0
  331. union/_utils/__init__.py +11 -0
  332. union/_utils/asyn.py +119 -0
  333. union/_utils/file_handling.py +71 -0
  334. union/_utils/helpers.py +46 -0
  335. union/_utils/lazy_module.py +54 -0
  336. union/_utils/uv_script_parser.py +49 -0
  337. union/_version.py +21 -0
  338. union/connectors/__init__.py +0 -0
  339. union/errors.py +128 -0
  340. union/extras/__init__.py +5 -0
  341. union/extras/_container.py +263 -0
  342. union/io/__init__.py +11 -0
  343. union/io/_dataframe.py +0 -0
  344. union/io/_dir.py +425 -0
  345. union/io/_file.py +418 -0
  346. union/io/pickle/__init__.py +0 -0
  347. union/io/pickle/transformer.py +117 -0
  348. union/io/structured_dataset/__init__.py +122 -0
  349. union/io/structured_dataset/basic_dfs.py +219 -0
  350. union/io/structured_dataset/structured_dataset.py +1057 -0
  351. union/py.typed +0 -0
  352. union/remote/__init__.py +23 -0
  353. union/remote/_client/__init__.py +0 -0
  354. union/remote/_client/_protocols.py +129 -0
  355. union/remote/_client/auth/__init__.py +12 -0
  356. union/remote/_client/auth/_authenticators/__init__.py +0 -0
  357. union/remote/_client/auth/_authenticators/base.py +391 -0
  358. union/remote/_client/auth/_authenticators/client_credentials.py +73 -0
  359. union/remote/_client/auth/_authenticators/device_code.py +120 -0
  360. union/remote/_client/auth/_authenticators/external_command.py +77 -0
  361. union/remote/_client/auth/_authenticators/factory.py +200 -0
  362. union/remote/_client/auth/_authenticators/pkce.py +515 -0
  363. union/remote/_client/auth/_channel.py +184 -0
  364. union/remote/_client/auth/_client_config.py +83 -0
  365. union/remote/_client/auth/_default_html.py +32 -0
  366. union/remote/_client/auth/_grpc_utils/__init__.py +0 -0
  367. union/remote/_client/auth/_grpc_utils/auth_interceptor.py +204 -0
  368. union/remote/_client/auth/_grpc_utils/default_metadata_interceptor.py +144 -0
  369. union/remote/_client/auth/_keyring.py +154 -0
  370. union/remote/_client/auth/_token_client.py +258 -0
  371. union/remote/_client/auth/errors.py +16 -0
  372. union/remote/_client/controlplane.py +86 -0
  373. union/remote/_data.py +149 -0
  374. union/remote/_logs.py +74 -0
  375. union/remote/_project.py +86 -0
  376. union/remote/_run.py +820 -0
  377. union/remote/_secret.py +132 -0
  378. union/remote/_task.py +193 -0
  379. union/report/__init__.py +3 -0
  380. union/report/_report.py +178 -0
  381. union/report/_template.html +124 -0
  382. union/storage/__init__.py +24 -0
  383. union/storage/_remote_fs.py +34 -0
  384. union/storage/_storage.py +247 -0
  385. union/storage/_utils.py +5 -0
  386. union/types/__init__.py +11 -0
  387. union/types/_renderer.py +162 -0
  388. union/types/_string_literals.py +120 -0
  389. union/types/_type_engine.py +2131 -0
  390. union/types/_utils.py +80 -0
@@ -0,0 +1,41 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: workflow/run_logs_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 flyte._protos.logs.dataplane import payload_pb2 as logs_dot_dataplane_dot_payload__pb2
15
+ from flyte._protos.validate.validate import validate_pb2 as validate_dot_validate__pb2
16
+ from flyte._protos.workflow import run_definition_pb2 as workflow_dot_run__definition__pb2
17
+
18
+
19
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fworkflow/run_logs_service.proto\x12\x11\x63loudidl.workflow\x1a\x1clogs/dataplane/payload.proto\x1a\x17validate/validate.proto\x1a\x1dworkflow/run_definition.proto\"\x80\x01\n\x0fTailLogsRequest\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\x07\x61ttempt\x18\x02 \x01(\rB\x07\xfa\x42\x04*\x02 \x00R\x07\x61ttempt\"\x90\x01\n\x10TailLogsResponse\x12<\n\x04logs\x18\x01 \x03(\x0b\x32(.cloudidl.workflow.TailLogsResponse.LogsR\x04logs\x1a>\n\x04Logs\x12\x36\n\x05lines\x18\x01 \x03(\x0b\x32 .cloudidl.logs.dataplane.LogLineR\x05lines2l\n\x0eRunLogsService\x12Z\n\x08TailLogs\x12\".cloudidl.workflow.TailLogsRequest\x1a#.cloudidl.workflow.TailLogsResponse\"\x03\x90\x02\x01\x30\x01\x42\xc0\x01\n\x15\x63om.cloudidl.workflowB\x13RunLogsServiceProtoH\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')
20
+
21
+ _globals = globals()
22
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
23
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'workflow.run_logs_service_pb2', _globals)
24
+ if _descriptor._USE_C_DESCRIPTORS == False:
25
+ DESCRIPTOR._options = None
26
+ DESCRIPTOR._serialized_options = b'\n\025com.cloudidl.workflowB\023RunLogsServiceProtoH\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'
27
+ _TAILLOGSREQUEST.fields_by_name['action_id']._options = None
28
+ _TAILLOGSREQUEST.fields_by_name['action_id']._serialized_options = b'\372B\005\212\001\002\020\001'
29
+ _TAILLOGSREQUEST.fields_by_name['attempt']._options = None
30
+ _TAILLOGSREQUEST.fields_by_name['attempt']._serialized_options = b'\372B\004*\002 \000'
31
+ _RUNLOGSSERVICE.methods_by_name['TailLogs']._options = None
32
+ _RUNLOGSSERVICE.methods_by_name['TailLogs']._serialized_options = b'\220\002\001'
33
+ _globals['_TAILLOGSREQUEST']._serialized_start=141
34
+ _globals['_TAILLOGSREQUEST']._serialized_end=269
35
+ _globals['_TAILLOGSRESPONSE']._serialized_start=272
36
+ _globals['_TAILLOGSRESPONSE']._serialized_end=416
37
+ _globals['_TAILLOGSRESPONSE_LOGS']._serialized_start=354
38
+ _globals['_TAILLOGSRESPONSE_LOGS']._serialized_end=416
39
+ _globals['_RUNLOGSSERVICE']._serialized_start=418
40
+ _globals['_RUNLOGSSERVICE']._serialized_end=526
41
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,28 @@
1
+ from flyte._protos.logs.dataplane import payload_pb2 as _payload_pb2
2
+ from flyte._protos.validate.validate import validate_pb2 as _validate_pb2
3
+ from flyte._protos.workflow import run_definition_pb2 as _run_definition_pb2
4
+ from google.protobuf.internal import containers as _containers
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import message as _message
7
+ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
8
+
9
+ DESCRIPTOR: _descriptor.FileDescriptor
10
+
11
+ class TailLogsRequest(_message.Message):
12
+ __slots__ = ["action_id", "attempt"]
13
+ ACTION_ID_FIELD_NUMBER: _ClassVar[int]
14
+ ATTEMPT_FIELD_NUMBER: _ClassVar[int]
15
+ action_id: _run_definition_pb2.ActionIdentifier
16
+ attempt: int
17
+ def __init__(self, action_id: _Optional[_Union[_run_definition_pb2.ActionIdentifier, _Mapping]] = ..., attempt: _Optional[int] = ...) -> None: ...
18
+
19
+ class TailLogsResponse(_message.Message):
20
+ __slots__ = ["logs"]
21
+ class Logs(_message.Message):
22
+ __slots__ = ["lines"]
23
+ LINES_FIELD_NUMBER: _ClassVar[int]
24
+ lines: _containers.RepeatedCompositeFieldContainer[_payload_pb2.LogLine]
25
+ def __init__(self, lines: _Optional[_Iterable[_Union[_payload_pb2.LogLine, _Mapping]]] = ...) -> None: ...
26
+ LOGS_FIELD_NUMBER: _ClassVar[int]
27
+ logs: _containers.RepeatedCompositeFieldContainer[TailLogsResponse.Logs]
28
+ def __init__(self, logs: _Optional[_Iterable[_Union[TailLogsResponse.Logs, _Mapping]]] = ...) -> None: ...
@@ -0,0 +1,69 @@
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 flyte._protos.workflow import run_logs_service_pb2 as workflow_dot_run__logs__service__pb2
6
+
7
+
8
+ class RunLogsServiceStub(object):
9
+ """RunLogsService provides an interface for streaming logs.
10
+ """
11
+
12
+ def __init__(self, channel):
13
+ """Constructor.
14
+
15
+ Args:
16
+ channel: A grpc.Channel.
17
+ """
18
+ self.TailLogs = channel.unary_stream(
19
+ '/cloudidl.workflow.RunLogsService/TailLogs',
20
+ request_serializer=workflow_dot_run__logs__service__pb2.TailLogsRequest.SerializeToString,
21
+ response_deserializer=workflow_dot_run__logs__service__pb2.TailLogsResponse.FromString,
22
+ )
23
+
24
+
25
+ class RunLogsServiceServicer(object):
26
+ """RunLogsService provides an interface for streaming logs.
27
+ """
28
+
29
+ def TailLogs(self, request, context):
30
+ """Missing associated documentation comment in .proto file."""
31
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
32
+ context.set_details('Method not implemented!')
33
+ raise NotImplementedError('Method not implemented!')
34
+
35
+
36
+ def add_RunLogsServiceServicer_to_server(servicer, server):
37
+ rpc_method_handlers = {
38
+ 'TailLogs': grpc.unary_stream_rpc_method_handler(
39
+ servicer.TailLogs,
40
+ request_deserializer=workflow_dot_run__logs__service__pb2.TailLogsRequest.FromString,
41
+ response_serializer=workflow_dot_run__logs__service__pb2.TailLogsResponse.SerializeToString,
42
+ ),
43
+ }
44
+ generic_handler = grpc.method_handlers_generic_handler(
45
+ 'cloudidl.workflow.RunLogsService', rpc_method_handlers)
46
+ server.add_generic_rpc_handlers((generic_handler,))
47
+
48
+
49
+ # This class is part of an EXPERIMENTAL API.
50
+ class RunLogsService(object):
51
+ """RunLogsService provides an interface for streaming logs.
52
+ """
53
+
54
+ @staticmethod
55
+ def TailLogs(request,
56
+ target,
57
+ options=(),
58
+ channel_credentials=None,
59
+ call_credentials=None,
60
+ insecure=False,
61
+ compression=None,
62
+ wait_for_ready=None,
63
+ timeout=None,
64
+ metadata=None):
65
+ return grpc.experimental.unary_stream(request, target, '/cloudidl.workflow.RunLogsService/TailLogs',
66
+ workflow_dot_run__logs__service__pb2.TailLogsRequest.SerializeToString,
67
+ workflow_dot_run__logs__service__pb2.TailLogsResponse.FromString,
68
+ options, channel_credentials,
69
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -0,0 +1,133 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: workflow/run_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 flyte._protos.common import identifier_pb2 as common_dot_identifier__pb2
15
+ from flyte._protos.common import list_pb2 as common_dot_list__pb2
16
+ from flyte._protos.validate.validate import validate_pb2 as validate_dot_validate__pb2
17
+ from flyte._protos.workflow import run_definition_pb2 as workflow_dot_run__definition__pb2
18
+ from flyte._protos.workflow import task_definition_pb2 as workflow_dot_task__definition__pb2
19
+
20
+
21
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1aworkflow/run_service.proto\x12\x11\x63loudidl.workflow\x1a\x17\x63ommon/identifier.proto\x1a\x11\x63ommon/list.proto\x1a\x17validate/validate.proto\x1a\x1dworkflow/run_definition.proto\x1a\x1eworkflow/task_definition.proto\"\xb6\x03\n\x10\x43reateRunRequest\x12\x43\n\x06run_id\x18\x01 \x01(\x0b\x32 .cloudidl.workflow.RunIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\x05runId\x12M\n\nproject_id\x18\x06 \x01(\x0b\x32\".cloudidl.common.ProjectIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\tprojectId\x12\x46\n\x07task_id\x18\x02 \x01(\x0b\x32!.cloudidl.workflow.TaskIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x01R\x06taskId\x12\x44\n\ttask_spec\x18\x03 \x01(\x0b\x32\x1b.cloudidl.workflow.TaskSpecB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x01R\x08taskSpec\x12\x31\n\x06inputs\x18\x04 \x01(\x0b\x32\x19.cloudidl.workflow.InputsR\x06inputs\x12\x35\n\x08run_spec\x18\x05 \x01(\x0b\x32\x1a.cloudidl.workflow.RunSpecR\x07runSpecB\t\n\x02id\x12\x03\xf8\x42\x01\x42\x0b\n\x04task\x12\x03\xf8\x42\x01\"=\n\x11\x43reateRunResponse\x12(\n\x03run\x18\x01 \x01(\x0b\x32\x16.cloudidl.workflow.RunR\x03run\"T\n\x0f\x41\x62ortRunRequest\x12\x41\n\x06run_id\x18\x01 \x01(\x0b\x32 .cloudidl.workflow.RunIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x05runId\"\x12\n\x10\x41\x62ortRunResponse\"Y\n\x14GetRunDetailsRequest\x12\x41\n\x06run_id\x18\x01 \x01(\x0b\x32 .cloudidl.workflow.RunIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x05runId\"P\n\x15GetRunDetailsResponse\x12\x37\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32\x1d.cloudidl.workflow.RunDetailsR\x07\x64\x65tails\"[\n\x16WatchRunDetailsRequest\x12\x41\n\x06run_id\x18\x01 \x01(\x0b\x32 .cloudidl.workflow.RunIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x05runId\"R\n\x17WatchRunDetailsResponse\x12\x37\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32\x1d.cloudidl.workflow.RunDetailsR\x07\x64\x65tails\"e\n\x17GetActionDetailsRequest\x12J\n\taction_id\x18\x01 \x01(\x0b\x32#.cloudidl.workflow.ActionIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08\x61\x63tionId\"V\n\x18GetActionDetailsResponse\x12:\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .cloudidl.workflow.ActionDetailsR\x07\x64\x65tails\"g\n\x19WatchActionDetailsRequest\x12J\n\taction_id\x18\x01 \x01(\x0b\x32#.cloudidl.workflow.ActionIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08\x61\x63tionId\"X\n\x1aWatchActionDetailsResponse\x12:\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .cloudidl.workflow.ActionDetailsR\x07\x64\x65tails\"b\n\x14GetActionDataRequest\x12J\n\taction_id\x18\x01 \x01(\x0b\x32#.cloudidl.workflow.ActionIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x08\x61\x63tionId\"\x80\x01\n\x15GetActionDataResponse\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.cloudidl.workflow.InputsR\x06inputs\x12\x34\n\x07outputs\x18\x02 \x01(\x0b\x32\x1a.cloudidl.workflow.OutputsR\x07outputs\"\xde\x02\n\x0fListRunsRequest\x12\x36\n\x07request\x18\x01 \x01(\x0b\x32\x1c.cloudidl.common.ListRequestR\x07request\x12\x1b\n\x03org\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01H\x00R\x03org\x12M\n\ncluster_id\x18\x03 \x01(\x0b\x32\".cloudidl.common.ClusterIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\tclusterId\x12M\n\nproject_id\x18\x04 \x01(\x0b\x32\".cloudidl.common.ProjectIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\tprojectId\x12\x46\n\x07task_id\x18\x05 \x01(\x0b\x32!.cloudidl.workflow.TaskIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\x06taskIdB\x10\n\tfilter_by\x12\x03\xf8\x42\x01\"T\n\x10ListRunsResponse\x12*\n\x04runs\x18\x01 \x03(\x0b\x32\x16.cloudidl.workflow.RunR\x04runs\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\xa4\x02\n\x10WatchRunsRequest\x12\x1b\n\x03org\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01H\x00R\x03org\x12M\n\ncluster_id\x18\x03 \x01(\x0b\x32\".cloudidl.common.ClusterIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\tclusterId\x12M\n\nproject_id\x18\x04 \x01(\x0b\x32\".cloudidl.common.ProjectIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\tprojectId\x12\x46\n\x07task_id\x18\x05 \x01(\x0b\x32!.cloudidl.workflow.TaskIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\x06taskIdB\r\n\x06target\x12\x03\xf8\x42\x01\"?\n\x11WatchRunsResponse\x12*\n\x04runs\x18\x01 \x03(\x0b\x32\x16.cloudidl.workflow.RunR\x04runs\"\x8f\x01\n\x12ListActionsRequest\x12\x36\n\x07request\x18\x01 \x01(\x0b\x32\x1c.cloudidl.common.ListRequestR\x07request\x12\x41\n\x06run_id\x18\x02 \x01(\x0b\x32 .cloudidl.workflow.RunIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x05runId\"`\n\x13ListActionsResponse\x12\x33\n\x07\x61\x63tions\x18\x01 \x03(\x0b\x32\x19.cloudidl.workflow.ActionR\x07\x61\x63tions\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x89\x01\n\x13WatchActionsRequest\x12\x41\n\x06run_id\x18\x01 \x01(\x0b\x32 .cloudidl.workflow.RunIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x05runId\x12/\n\x06\x66ilter\x18\x02 \x03(\x0b\x32\x17.cloudidl.common.FilterR\x06\x66ilter\"d\n\x14WatchActionsResponse\x12L\n\x10\x65nriched_actions\x18\x01 \x03(\x0b\x32!.cloudidl.workflow.EnrichedActionR\x0f\x65nrichedActions2\xe4\x08\n\nRunService\x12X\n\tCreateRun\x12#.cloudidl.workflow.CreateRunRequest\x1a$.cloudidl.workflow.CreateRunResponse\"\x00\x12U\n\x08\x41\x62ortRun\x12\".cloudidl.workflow.AbortRunRequest\x1a#.cloudidl.workflow.AbortRunResponse\"\x00\x12g\n\rGetRunDetails\x12\'.cloudidl.workflow.GetRunDetailsRequest\x1a(.cloudidl.workflow.GetRunDetailsResponse\"\x03\x90\x02\x01\x12l\n\x0fWatchRunDetails\x12).cloudidl.workflow.WatchRunDetailsRequest\x1a*.cloudidl.workflow.WatchRunDetailsResponse\"\x00\x30\x01\x12p\n\x10GetActionDetails\x12*.cloudidl.workflow.GetActionDetailsRequest\x1a+.cloudidl.workflow.GetActionDetailsResponse\"\x03\x90\x02\x01\x12u\n\x12WatchActionDetails\x12,.cloudidl.workflow.WatchActionDetailsRequest\x1a-.cloudidl.workflow.WatchActionDetailsResponse\"\x00\x30\x01\x12g\n\rGetActionData\x12\'.cloudidl.workflow.GetActionDataRequest\x1a(.cloudidl.workflow.GetActionDataResponse\"\x03\x90\x02\x01\x12X\n\x08ListRuns\x12\".cloudidl.workflow.ListRunsRequest\x1a#.cloudidl.workflow.ListRunsResponse\"\x03\x90\x02\x01\x12Z\n\tWatchRuns\x12#.cloudidl.workflow.WatchRunsRequest\x1a$.cloudidl.workflow.WatchRunsResponse\"\x00\x30\x01\x12\x61\n\x0bListActions\x12%.cloudidl.workflow.ListActionsRequest\x1a&.cloudidl.workflow.ListActionsResponse\"\x03\x90\x02\x01\x12\x63\n\x0cWatchActions\x12&.cloudidl.workflow.WatchActionsRequest\x1a\'.cloudidl.workflow.WatchActionsResponse\"\x00\x30\x01\x42\xbc\x01\n\x15\x63om.cloudidl.workflowB\x0fRunServiceProtoH\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')
22
+
23
+ _globals = globals()
24
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
25
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'workflow.run_service_pb2', _globals)
26
+ if _descriptor._USE_C_DESCRIPTORS == False:
27
+ DESCRIPTOR._options = None
28
+ DESCRIPTOR._serialized_options = b'\n\025com.cloudidl.workflowB\017RunServiceProtoH\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'
29
+ _CREATERUNREQUEST.oneofs_by_name['id']._options = None
30
+ _CREATERUNREQUEST.oneofs_by_name['id']._serialized_options = b'\370B\001'
31
+ _CREATERUNREQUEST.oneofs_by_name['task']._options = None
32
+ _CREATERUNREQUEST.oneofs_by_name['task']._serialized_options = b'\370B\001'
33
+ _CREATERUNREQUEST.fields_by_name['run_id']._options = None
34
+ _CREATERUNREQUEST.fields_by_name['run_id']._serialized_options = b'\372B\005\212\001\002\020\001'
35
+ _CREATERUNREQUEST.fields_by_name['project_id']._options = None
36
+ _CREATERUNREQUEST.fields_by_name['project_id']._serialized_options = b'\372B\005\212\001\002\020\001'
37
+ _CREATERUNREQUEST.fields_by_name['task_id']._options = None
38
+ _CREATERUNREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\005\212\001\002\020\001'
39
+ _CREATERUNREQUEST.fields_by_name['task_spec']._options = None
40
+ _CREATERUNREQUEST.fields_by_name['task_spec']._serialized_options = b'\372B\005\212\001\002\020\001'
41
+ _ABORTRUNREQUEST.fields_by_name['run_id']._options = None
42
+ _ABORTRUNREQUEST.fields_by_name['run_id']._serialized_options = b'\372B\005\212\001\002\020\001'
43
+ _GETRUNDETAILSREQUEST.fields_by_name['run_id']._options = None
44
+ _GETRUNDETAILSREQUEST.fields_by_name['run_id']._serialized_options = b'\372B\005\212\001\002\020\001'
45
+ _WATCHRUNDETAILSREQUEST.fields_by_name['run_id']._options = None
46
+ _WATCHRUNDETAILSREQUEST.fields_by_name['run_id']._serialized_options = b'\372B\005\212\001\002\020\001'
47
+ _GETACTIONDETAILSREQUEST.fields_by_name['action_id']._options = None
48
+ _GETACTIONDETAILSREQUEST.fields_by_name['action_id']._serialized_options = b'\372B\005\212\001\002\020\001'
49
+ _WATCHACTIONDETAILSREQUEST.fields_by_name['action_id']._options = None
50
+ _WATCHACTIONDETAILSREQUEST.fields_by_name['action_id']._serialized_options = b'\372B\005\212\001\002\020\001'
51
+ _GETACTIONDATAREQUEST.fields_by_name['action_id']._options = None
52
+ _GETACTIONDATAREQUEST.fields_by_name['action_id']._serialized_options = b'\372B\005\212\001\002\020\001'
53
+ _LISTRUNSREQUEST.oneofs_by_name['filter_by']._options = None
54
+ _LISTRUNSREQUEST.oneofs_by_name['filter_by']._serialized_options = b'\370B\001'
55
+ _LISTRUNSREQUEST.fields_by_name['org']._options = None
56
+ _LISTRUNSREQUEST.fields_by_name['org']._serialized_options = b'\372B\004r\002\020\001'
57
+ _LISTRUNSREQUEST.fields_by_name['cluster_id']._options = None
58
+ _LISTRUNSREQUEST.fields_by_name['cluster_id']._serialized_options = b'\372B\005\212\001\002\020\001'
59
+ _LISTRUNSREQUEST.fields_by_name['project_id']._options = None
60
+ _LISTRUNSREQUEST.fields_by_name['project_id']._serialized_options = b'\372B\005\212\001\002\020\001'
61
+ _LISTRUNSREQUEST.fields_by_name['task_id']._options = None
62
+ _LISTRUNSREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\005\212\001\002\020\001'
63
+ _WATCHRUNSREQUEST.oneofs_by_name['target']._options = None
64
+ _WATCHRUNSREQUEST.oneofs_by_name['target']._serialized_options = b'\370B\001'
65
+ _WATCHRUNSREQUEST.fields_by_name['org']._options = None
66
+ _WATCHRUNSREQUEST.fields_by_name['org']._serialized_options = b'\372B\004r\002\020\001'
67
+ _WATCHRUNSREQUEST.fields_by_name['cluster_id']._options = None
68
+ _WATCHRUNSREQUEST.fields_by_name['cluster_id']._serialized_options = b'\372B\005\212\001\002\020\001'
69
+ _WATCHRUNSREQUEST.fields_by_name['project_id']._options = None
70
+ _WATCHRUNSREQUEST.fields_by_name['project_id']._serialized_options = b'\372B\005\212\001\002\020\001'
71
+ _WATCHRUNSREQUEST.fields_by_name['task_id']._options = None
72
+ _WATCHRUNSREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\005\212\001\002\020\001'
73
+ _LISTACTIONSREQUEST.fields_by_name['run_id']._options = None
74
+ _LISTACTIONSREQUEST.fields_by_name['run_id']._serialized_options = b'\372B\005\212\001\002\020\001'
75
+ _WATCHACTIONSREQUEST.fields_by_name['run_id']._options = None
76
+ _WATCHACTIONSREQUEST.fields_by_name['run_id']._serialized_options = b'\372B\005\212\001\002\020\001'
77
+ _RUNSERVICE.methods_by_name['GetRunDetails']._options = None
78
+ _RUNSERVICE.methods_by_name['GetRunDetails']._serialized_options = b'\220\002\001'
79
+ _RUNSERVICE.methods_by_name['GetActionDetails']._options = None
80
+ _RUNSERVICE.methods_by_name['GetActionDetails']._serialized_options = b'\220\002\001'
81
+ _RUNSERVICE.methods_by_name['GetActionData']._options = None
82
+ _RUNSERVICE.methods_by_name['GetActionData']._serialized_options = b'\220\002\001'
83
+ _RUNSERVICE.methods_by_name['ListRuns']._options = None
84
+ _RUNSERVICE.methods_by_name['ListRuns']._serialized_options = b'\220\002\001'
85
+ _RUNSERVICE.methods_by_name['ListActions']._options = None
86
+ _RUNSERVICE.methods_by_name['ListActions']._serialized_options = b'\220\002\001'
87
+ _globals['_CREATERUNREQUEST']._serialized_start=182
88
+ _globals['_CREATERUNREQUEST']._serialized_end=620
89
+ _globals['_CREATERUNRESPONSE']._serialized_start=622
90
+ _globals['_CREATERUNRESPONSE']._serialized_end=683
91
+ _globals['_ABORTRUNREQUEST']._serialized_start=685
92
+ _globals['_ABORTRUNREQUEST']._serialized_end=769
93
+ _globals['_ABORTRUNRESPONSE']._serialized_start=771
94
+ _globals['_ABORTRUNRESPONSE']._serialized_end=789
95
+ _globals['_GETRUNDETAILSREQUEST']._serialized_start=791
96
+ _globals['_GETRUNDETAILSREQUEST']._serialized_end=880
97
+ _globals['_GETRUNDETAILSRESPONSE']._serialized_start=882
98
+ _globals['_GETRUNDETAILSRESPONSE']._serialized_end=962
99
+ _globals['_WATCHRUNDETAILSREQUEST']._serialized_start=964
100
+ _globals['_WATCHRUNDETAILSREQUEST']._serialized_end=1055
101
+ _globals['_WATCHRUNDETAILSRESPONSE']._serialized_start=1057
102
+ _globals['_WATCHRUNDETAILSRESPONSE']._serialized_end=1139
103
+ _globals['_GETACTIONDETAILSREQUEST']._serialized_start=1141
104
+ _globals['_GETACTIONDETAILSREQUEST']._serialized_end=1242
105
+ _globals['_GETACTIONDETAILSRESPONSE']._serialized_start=1244
106
+ _globals['_GETACTIONDETAILSRESPONSE']._serialized_end=1330
107
+ _globals['_WATCHACTIONDETAILSREQUEST']._serialized_start=1332
108
+ _globals['_WATCHACTIONDETAILSREQUEST']._serialized_end=1435
109
+ _globals['_WATCHACTIONDETAILSRESPONSE']._serialized_start=1437
110
+ _globals['_WATCHACTIONDETAILSRESPONSE']._serialized_end=1525
111
+ _globals['_GETACTIONDATAREQUEST']._serialized_start=1527
112
+ _globals['_GETACTIONDATAREQUEST']._serialized_end=1625
113
+ _globals['_GETACTIONDATARESPONSE']._serialized_start=1628
114
+ _globals['_GETACTIONDATARESPONSE']._serialized_end=1756
115
+ _globals['_LISTRUNSREQUEST']._serialized_start=1759
116
+ _globals['_LISTRUNSREQUEST']._serialized_end=2109
117
+ _globals['_LISTRUNSRESPONSE']._serialized_start=2111
118
+ _globals['_LISTRUNSRESPONSE']._serialized_end=2195
119
+ _globals['_WATCHRUNSREQUEST']._serialized_start=2198
120
+ _globals['_WATCHRUNSREQUEST']._serialized_end=2490
121
+ _globals['_WATCHRUNSRESPONSE']._serialized_start=2492
122
+ _globals['_WATCHRUNSRESPONSE']._serialized_end=2555
123
+ _globals['_LISTACTIONSREQUEST']._serialized_start=2558
124
+ _globals['_LISTACTIONSREQUEST']._serialized_end=2701
125
+ _globals['_LISTACTIONSRESPONSE']._serialized_start=2703
126
+ _globals['_LISTACTIONSRESPONSE']._serialized_end=2799
127
+ _globals['_WATCHACTIONSREQUEST']._serialized_start=2802
128
+ _globals['_WATCHACTIONSREQUEST']._serialized_end=2939
129
+ _globals['_WATCHACTIONSRESPONSE']._serialized_start=2941
130
+ _globals['_WATCHACTIONSRESPONSE']._serialized_end=3041
131
+ _globals['_RUNSERVICE']._serialized_start=3044
132
+ _globals['_RUNSERVICE']._serialized_end=4168
133
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,175 @@
1
+ from flyte._protos.common import identifier_pb2 as _identifier_pb2
2
+ from flyte._protos.common import list_pb2 as _list_pb2
3
+ from flyte._protos.validate.validate import validate_pb2 as _validate_pb2
4
+ from flyte._protos.workflow import run_definition_pb2 as _run_definition_pb2
5
+ from flyte._protos.workflow import task_definition_pb2 as _task_definition_pb2
6
+ from google.protobuf.internal import containers as _containers
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import message as _message
9
+ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
10
+
11
+ DESCRIPTOR: _descriptor.FileDescriptor
12
+
13
+ class CreateRunRequest(_message.Message):
14
+ __slots__ = ["run_id", "project_id", "task_id", "task_spec", "inputs", "run_spec"]
15
+ RUN_ID_FIELD_NUMBER: _ClassVar[int]
16
+ PROJECT_ID_FIELD_NUMBER: _ClassVar[int]
17
+ TASK_ID_FIELD_NUMBER: _ClassVar[int]
18
+ TASK_SPEC_FIELD_NUMBER: _ClassVar[int]
19
+ INPUTS_FIELD_NUMBER: _ClassVar[int]
20
+ RUN_SPEC_FIELD_NUMBER: _ClassVar[int]
21
+ run_id: _run_definition_pb2.RunIdentifier
22
+ project_id: _identifier_pb2.ProjectIdentifier
23
+ task_id: _task_definition_pb2.TaskIdentifier
24
+ task_spec: _task_definition_pb2.TaskSpec
25
+ inputs: _run_definition_pb2.Inputs
26
+ run_spec: _run_definition_pb2.RunSpec
27
+ def __init__(self, run_id: _Optional[_Union[_run_definition_pb2.RunIdentifier, _Mapping]] = ..., project_id: _Optional[_Union[_identifier_pb2.ProjectIdentifier, _Mapping]] = ..., task_id: _Optional[_Union[_task_definition_pb2.TaskIdentifier, _Mapping]] = ..., task_spec: _Optional[_Union[_task_definition_pb2.TaskSpec, _Mapping]] = ..., inputs: _Optional[_Union[_run_definition_pb2.Inputs, _Mapping]] = ..., run_spec: _Optional[_Union[_run_definition_pb2.RunSpec, _Mapping]] = ...) -> None: ...
28
+
29
+ class CreateRunResponse(_message.Message):
30
+ __slots__ = ["run"]
31
+ RUN_FIELD_NUMBER: _ClassVar[int]
32
+ run: _run_definition_pb2.Run
33
+ def __init__(self, run: _Optional[_Union[_run_definition_pb2.Run, _Mapping]] = ...) -> None: ...
34
+
35
+ class AbortRunRequest(_message.Message):
36
+ __slots__ = ["run_id"]
37
+ RUN_ID_FIELD_NUMBER: _ClassVar[int]
38
+ run_id: _run_definition_pb2.RunIdentifier
39
+ def __init__(self, run_id: _Optional[_Union[_run_definition_pb2.RunIdentifier, _Mapping]] = ...) -> None: ...
40
+
41
+ class AbortRunResponse(_message.Message):
42
+ __slots__ = []
43
+ def __init__(self) -> None: ...
44
+
45
+ class GetRunDetailsRequest(_message.Message):
46
+ __slots__ = ["run_id"]
47
+ RUN_ID_FIELD_NUMBER: _ClassVar[int]
48
+ run_id: _run_definition_pb2.RunIdentifier
49
+ def __init__(self, run_id: _Optional[_Union[_run_definition_pb2.RunIdentifier, _Mapping]] = ...) -> None: ...
50
+
51
+ class GetRunDetailsResponse(_message.Message):
52
+ __slots__ = ["details"]
53
+ DETAILS_FIELD_NUMBER: _ClassVar[int]
54
+ details: _run_definition_pb2.RunDetails
55
+ def __init__(self, details: _Optional[_Union[_run_definition_pb2.RunDetails, _Mapping]] = ...) -> None: ...
56
+
57
+ class WatchRunDetailsRequest(_message.Message):
58
+ __slots__ = ["run_id"]
59
+ RUN_ID_FIELD_NUMBER: _ClassVar[int]
60
+ run_id: _run_definition_pb2.RunIdentifier
61
+ def __init__(self, run_id: _Optional[_Union[_run_definition_pb2.RunIdentifier, _Mapping]] = ...) -> None: ...
62
+
63
+ class WatchRunDetailsResponse(_message.Message):
64
+ __slots__ = ["details"]
65
+ DETAILS_FIELD_NUMBER: _ClassVar[int]
66
+ details: _run_definition_pb2.RunDetails
67
+ def __init__(self, details: _Optional[_Union[_run_definition_pb2.RunDetails, _Mapping]] = ...) -> None: ...
68
+
69
+ class GetActionDetailsRequest(_message.Message):
70
+ __slots__ = ["action_id"]
71
+ ACTION_ID_FIELD_NUMBER: _ClassVar[int]
72
+ action_id: _run_definition_pb2.ActionIdentifier
73
+ def __init__(self, action_id: _Optional[_Union[_run_definition_pb2.ActionIdentifier, _Mapping]] = ...) -> None: ...
74
+
75
+ class GetActionDetailsResponse(_message.Message):
76
+ __slots__ = ["details"]
77
+ DETAILS_FIELD_NUMBER: _ClassVar[int]
78
+ details: _run_definition_pb2.ActionDetails
79
+ def __init__(self, details: _Optional[_Union[_run_definition_pb2.ActionDetails, _Mapping]] = ...) -> None: ...
80
+
81
+ class WatchActionDetailsRequest(_message.Message):
82
+ __slots__ = ["action_id"]
83
+ ACTION_ID_FIELD_NUMBER: _ClassVar[int]
84
+ action_id: _run_definition_pb2.ActionIdentifier
85
+ def __init__(self, action_id: _Optional[_Union[_run_definition_pb2.ActionIdentifier, _Mapping]] = ...) -> None: ...
86
+
87
+ class WatchActionDetailsResponse(_message.Message):
88
+ __slots__ = ["details"]
89
+ DETAILS_FIELD_NUMBER: _ClassVar[int]
90
+ details: _run_definition_pb2.ActionDetails
91
+ def __init__(self, details: _Optional[_Union[_run_definition_pb2.ActionDetails, _Mapping]] = ...) -> None: ...
92
+
93
+ class GetActionDataRequest(_message.Message):
94
+ __slots__ = ["action_id"]
95
+ ACTION_ID_FIELD_NUMBER: _ClassVar[int]
96
+ action_id: _run_definition_pb2.ActionIdentifier
97
+ def __init__(self, action_id: _Optional[_Union[_run_definition_pb2.ActionIdentifier, _Mapping]] = ...) -> None: ...
98
+
99
+ class GetActionDataResponse(_message.Message):
100
+ __slots__ = ["inputs", "outputs"]
101
+ INPUTS_FIELD_NUMBER: _ClassVar[int]
102
+ OUTPUTS_FIELD_NUMBER: _ClassVar[int]
103
+ inputs: _run_definition_pb2.Inputs
104
+ outputs: _run_definition_pb2.Outputs
105
+ def __init__(self, inputs: _Optional[_Union[_run_definition_pb2.Inputs, _Mapping]] = ..., outputs: _Optional[_Union[_run_definition_pb2.Outputs, _Mapping]] = ...) -> None: ...
106
+
107
+ class ListRunsRequest(_message.Message):
108
+ __slots__ = ["request", "org", "cluster_id", "project_id", "task_id"]
109
+ REQUEST_FIELD_NUMBER: _ClassVar[int]
110
+ ORG_FIELD_NUMBER: _ClassVar[int]
111
+ CLUSTER_ID_FIELD_NUMBER: _ClassVar[int]
112
+ PROJECT_ID_FIELD_NUMBER: _ClassVar[int]
113
+ TASK_ID_FIELD_NUMBER: _ClassVar[int]
114
+ request: _list_pb2.ListRequest
115
+ org: str
116
+ cluster_id: _identifier_pb2.ClusterIdentifier
117
+ project_id: _identifier_pb2.ProjectIdentifier
118
+ task_id: _task_definition_pb2.TaskIdentifier
119
+ def __init__(self, request: _Optional[_Union[_list_pb2.ListRequest, _Mapping]] = ..., org: _Optional[str] = ..., cluster_id: _Optional[_Union[_identifier_pb2.ClusterIdentifier, _Mapping]] = ..., project_id: _Optional[_Union[_identifier_pb2.ProjectIdentifier, _Mapping]] = ..., task_id: _Optional[_Union[_task_definition_pb2.TaskIdentifier, _Mapping]] = ...) -> None: ...
120
+
121
+ class ListRunsResponse(_message.Message):
122
+ __slots__ = ["runs", "token"]
123
+ RUNS_FIELD_NUMBER: _ClassVar[int]
124
+ TOKEN_FIELD_NUMBER: _ClassVar[int]
125
+ runs: _containers.RepeatedCompositeFieldContainer[_run_definition_pb2.Run]
126
+ token: str
127
+ def __init__(self, runs: _Optional[_Iterable[_Union[_run_definition_pb2.Run, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ...
128
+
129
+ class WatchRunsRequest(_message.Message):
130
+ __slots__ = ["org", "cluster_id", "project_id", "task_id"]
131
+ ORG_FIELD_NUMBER: _ClassVar[int]
132
+ CLUSTER_ID_FIELD_NUMBER: _ClassVar[int]
133
+ PROJECT_ID_FIELD_NUMBER: _ClassVar[int]
134
+ TASK_ID_FIELD_NUMBER: _ClassVar[int]
135
+ org: str
136
+ cluster_id: _identifier_pb2.ClusterIdentifier
137
+ project_id: _identifier_pb2.ProjectIdentifier
138
+ task_id: _task_definition_pb2.TaskIdentifier
139
+ def __init__(self, org: _Optional[str] = ..., cluster_id: _Optional[_Union[_identifier_pb2.ClusterIdentifier, _Mapping]] = ..., project_id: _Optional[_Union[_identifier_pb2.ProjectIdentifier, _Mapping]] = ..., task_id: _Optional[_Union[_task_definition_pb2.TaskIdentifier, _Mapping]] = ...) -> None: ...
140
+
141
+ class WatchRunsResponse(_message.Message):
142
+ __slots__ = ["runs"]
143
+ RUNS_FIELD_NUMBER: _ClassVar[int]
144
+ runs: _containers.RepeatedCompositeFieldContainer[_run_definition_pb2.Run]
145
+ def __init__(self, runs: _Optional[_Iterable[_Union[_run_definition_pb2.Run, _Mapping]]] = ...) -> None: ...
146
+
147
+ class ListActionsRequest(_message.Message):
148
+ __slots__ = ["request", "run_id"]
149
+ REQUEST_FIELD_NUMBER: _ClassVar[int]
150
+ RUN_ID_FIELD_NUMBER: _ClassVar[int]
151
+ request: _list_pb2.ListRequest
152
+ run_id: _run_definition_pb2.RunIdentifier
153
+ def __init__(self, request: _Optional[_Union[_list_pb2.ListRequest, _Mapping]] = ..., run_id: _Optional[_Union[_run_definition_pb2.RunIdentifier, _Mapping]] = ...) -> None: ...
154
+
155
+ class ListActionsResponse(_message.Message):
156
+ __slots__ = ["actions", "token"]
157
+ ACTIONS_FIELD_NUMBER: _ClassVar[int]
158
+ TOKEN_FIELD_NUMBER: _ClassVar[int]
159
+ actions: _containers.RepeatedCompositeFieldContainer[_run_definition_pb2.Action]
160
+ token: str
161
+ def __init__(self, actions: _Optional[_Iterable[_Union[_run_definition_pb2.Action, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ...
162
+
163
+ class WatchActionsRequest(_message.Message):
164
+ __slots__ = ["run_id", "filter"]
165
+ RUN_ID_FIELD_NUMBER: _ClassVar[int]
166
+ FILTER_FIELD_NUMBER: _ClassVar[int]
167
+ run_id: _run_definition_pb2.RunIdentifier
168
+ filter: _containers.RepeatedCompositeFieldContainer[_list_pb2.Filter]
169
+ def __init__(self, run_id: _Optional[_Union[_run_definition_pb2.RunIdentifier, _Mapping]] = ..., filter: _Optional[_Iterable[_Union[_list_pb2.Filter, _Mapping]]] = ...) -> None: ...
170
+
171
+ class WatchActionsResponse(_message.Message):
172
+ __slots__ = ["enriched_actions"]
173
+ ENRICHED_ACTIONS_FIELD_NUMBER: _ClassVar[int]
174
+ enriched_actions: _containers.RepeatedCompositeFieldContainer[_run_definition_pb2.EnrichedAction]
175
+ def __init__(self, enriched_actions: _Optional[_Iterable[_Union[_run_definition_pb2.EnrichedAction, _Mapping]]] = ...) -> None: ...