mage-ai 0.9.45__py3-none-any.whl → 0.9.47__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.
Files changed (566) hide show
  1. mage_ai/api/constants.py +2 -0
  2. mage_ai/api/operations/base.py +230 -12
  3. mage_ai/api/policies/BasePolicy.py +3 -3
  4. mage_ai/api/policies/ComputeClusterPolicy.py +96 -0
  5. mage_ai/api/policies/ComputeConnectionPolicy.py +74 -0
  6. mage_ai/api/policies/ComputeServicePolicy.py +50 -0
  7. mage_ai/api/policies/DownloadPolicy.py +29 -0
  8. mage_ai/api/policies/GlobalHookPolicy.py +126 -0
  9. mage_ai/api/policies/IntegrationSourcePolicy.py +62 -0
  10. mage_ai/api/policies/OauthPolicy.py +56 -4
  11. mage_ai/api/policies/ProjectPolicy.py +1 -0
  12. mage_ai/api/presenters/ComputeClusterPresenter.py +19 -0
  13. mage_ai/api/presenters/ComputeConnectionPresenter.py +26 -0
  14. mage_ai/api/presenters/ComputeServicePresenter.py +15 -0
  15. mage_ai/api/presenters/DownloadPresenter.py +13 -0
  16. mage_ai/api/presenters/GlobalHookPresenter.py +74 -0
  17. mage_ai/api/presenters/IntegrationSourcePresenter.py +9 -2
  18. mage_ai/api/presenters/PipelinePresenter.py +3 -0
  19. mage_ai/api/presenters/PipelineRunPresenter.py +8 -3
  20. mage_ai/api/presenters/PipelineSchedulePresenter.py +22 -1
  21. mage_ai/api/presenters/ProjectPresenter.py +1 -0
  22. mage_ai/api/presenters/SparkApplicationPresenter.py +2 -0
  23. mage_ai/api/presenters/WorkspacePresenter.py +22 -22
  24. mage_ai/api/resources/AsyncBaseResource.py +39 -0
  25. mage_ai/api/resources/BlockResource.py +5 -0
  26. mage_ai/api/resources/ClusterResource.py +1 -1
  27. mage_ai/api/resources/ComputeClusterResource.py +109 -0
  28. mage_ai/api/resources/ComputeConnectionResource.py +103 -0
  29. mage_ai/api/resources/ComputeServiceResource.py +35 -0
  30. mage_ai/api/resources/DataProviderResource.py +2 -0
  31. mage_ai/api/resources/DownloadResource.py +56 -0
  32. mage_ai/api/resources/ExecutionStateResource.py +1 -1
  33. mage_ai/api/resources/GlobalHookResource.py +192 -0
  34. mage_ai/api/resources/IntegrationSourceResource.py +149 -2
  35. mage_ai/api/resources/KernelResource.py +10 -0
  36. mage_ai/api/resources/OauthResource.py +28 -33
  37. mage_ai/api/resources/PipelineResource.py +4 -4
  38. mage_ai/api/resources/PipelineScheduleResource.py +37 -16
  39. mage_ai/api/resources/ProjectResource.py +5 -3
  40. mage_ai/api/resources/SessionResource.py +0 -9
  41. mage_ai/api/resources/SparkApplicationResource.py +5 -5
  42. mage_ai/api/resources/SparkEnvironmentResource.py +1 -2
  43. mage_ai/api/resources/SparkExecutorResource.py +1 -2
  44. mage_ai/api/resources/SparkJobResource.py +3 -6
  45. mage_ai/api/resources/SparkSqlResource.py +6 -11
  46. mage_ai/api/resources/SparkStageAttemptResource.py +2 -3
  47. mage_ai/api/resources/SparkStageAttemptTaskResource.py +1 -2
  48. mage_ai/api/resources/SparkStageAttemptTaskSummaryResource.py +1 -2
  49. mage_ai/api/resources/SparkStageResource.py +3 -6
  50. mage_ai/api/resources/SparkThreadResource.py +1 -2
  51. mage_ai/api/resources/mixins/spark.py +25 -4
  52. mage_ai/authentication/oauth2.py +1 -3
  53. mage_ai/authentication/permissions/constants.py +4 -0
  54. mage_ai/authentication/providers/active_directory.py +136 -0
  55. mage_ai/authentication/providers/constants.py +3 -0
  56. mage_ai/authentication/providers/ghe.py +24 -25
  57. mage_ai/authentication/providers/google.py +25 -26
  58. mage_ai/authentication/providers/oauth.py +2 -2
  59. mage_ai/authentication/providers/okta.py +28 -29
  60. mage_ai/authentication/providers/sso.py +2 -2
  61. mage_ai/cluster_manager/aws/emr_cluster_manager.py +2 -1
  62. mage_ai/cluster_manager/workspace/base.py +7 -3
  63. mage_ai/data_integrations/destinations/constants.py +1 -0
  64. mage_ai/data_integrations/sources/constants.py +5 -0
  65. mage_ai/data_integrations/utils/scheduler.py +57 -2
  66. mage_ai/data_preparation/executors/block_executor.py +9 -1
  67. mage_ai/data_preparation/executors/pipeline_executor.py +9 -0
  68. mage_ai/data_preparation/models/block/__init__.py +82 -17
  69. mage_ai/data_preparation/models/block/data_integration/constants.py +3 -0
  70. mage_ai/data_preparation/models/block/data_integration/data.py +1 -1
  71. mage_ai/data_preparation/models/block/data_integration/utils.py +196 -37
  72. mage_ai/data_preparation/models/block/spark/mixins.py +82 -34
  73. mage_ai/data_preparation/models/block/sql/utils/shared.py +18 -1
  74. mage_ai/data_preparation/models/block/utils.py +28 -13
  75. mage_ai/data_preparation/models/download/__init__.py +8 -0
  76. mage_ai/data_preparation/models/global_hooks/__init__.py +0 -0
  77. mage_ai/data_preparation/models/global_hooks/constants.py +93 -0
  78. mage_ai/data_preparation/models/global_hooks/models.py +992 -0
  79. mage_ai/data_preparation/models/global_hooks/predicates.py +316 -0
  80. mage_ai/data_preparation/models/global_hooks/utils.py +21 -0
  81. mage_ai/data_preparation/models/pipeline.py +84 -6
  82. mage_ai/data_preparation/models/pipelines/integration_pipeline.py +0 -1
  83. mage_ai/data_preparation/models/pipelines/models.py +16 -0
  84. mage_ai/data_preparation/models/project/__init__.py +6 -0
  85. mage_ai/data_preparation/models/project/constants.py +1 -0
  86. mage_ai/data_preparation/models/project/models.py +12 -0
  87. mage_ai/data_preparation/preferences.py +29 -18
  88. mage_ai/data_preparation/repo_manager.py +35 -3
  89. mage_ai/data_preparation/sync/__init__.py +2 -0
  90. mage_ai/data_preparation/templates/constants.py +14 -0
  91. mage_ai/data_preparation/templates/data_exporters/chroma.py +24 -0
  92. mage_ai/data_preparation/templates/data_exporters/streaming/rabbitmq.yaml +7 -0
  93. mage_ai/data_preparation/templates/data_loaders/chroma.py +27 -0
  94. mage_ai/data_preparation/templates/data_loaders/streaming/activemq.yaml +6 -0
  95. mage_ai/data_preparation/templates/data_loaders/streaming/nats.yaml +20 -0
  96. mage_ai/data_preparation/templates/repo/io_config.yaml +3 -0
  97. mage_ai/io/base.py +1 -0
  98. mage_ai/io/chroma.py +153 -0
  99. mage_ai/io/config.py +8 -0
  100. mage_ai/orchestration/db/models/schedules.py +100 -36
  101. mage_ai/orchestration/pipeline_scheduler.py +58 -19
  102. mage_ai/orchestration/queue/process_queue.py +9 -1
  103. mage_ai/orchestration/triggers/api.py +11 -3
  104. mage_ai/orchestration/triggers/constants.py +1 -0
  105. mage_ai/server/active_kernel.py +37 -4
  106. mage_ai/server/api/downloads.py +76 -1
  107. mage_ai/server/constants.py +1 -1
  108. mage_ai/server/frontend_dist/404.html +2 -2
  109. mage_ai/server/frontend_dist/_next/static/N3FS4bHv0jpYeeg672uYK/_buildManifest.js +1 -0
  110. mage_ai/server/frontend_dist/_next/static/chunks/1749-bf512b4dabbab7fa.js +1 -0
  111. mage_ai/server/frontend_dist/_next/static/chunks/{7519-8c29bbb92e03cc77.js → 1845-5ce774d5ab81ed57.js} +1 -1
  112. mage_ai/server/frontend_dist/_next/static/chunks/1952-57858e7445d24413.js +1 -0
  113. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/2714-1e79e9f2e998b544.js → frontend_dist/_next/static/chunks/2714-68fef54789d7eaeb.js} +1 -1
  114. mage_ai/server/frontend_dist/_next/static/chunks/2717-92cdffd87b6f6e05.js +1 -0
  115. mage_ai/server/frontend_dist/_next/static/chunks/3419-715ca383fa15a5ef.js +1 -0
  116. mage_ai/server/frontend_dist/_next/static/chunks/3437-b4d6a037cf5781f8.js +1 -0
  117. mage_ai/server/frontend_dist/_next/static/chunks/3943-c9fb980f03df6450.js +1 -0
  118. mage_ai/server/frontend_dist/_next/static/chunks/4267-cb102e060a43d9bd.js +1 -0
  119. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3932-0ceca9599d6e6d00.js → frontend_dist/_next/static/chunks/4366-3e52497942acbafe.js} +1 -1
  120. mage_ai/server/frontend_dist/_next/static/chunks/{4783-1a21d9be47574bba.js → 4783-422429203610c318.js} +1 -1
  121. mage_ai/server/frontend_dist/_next/static/chunks/5457-949640f4037bf12f.js +1 -0
  122. mage_ai/server/frontend_dist/_next/static/chunks/5499-76cf8f023c6b0985.js +1 -0
  123. mage_ai/server/frontend_dist/_next/static/chunks/553-7f7919e14392ca67.js +1 -0
  124. mage_ai/server/frontend_dist/_next/static/chunks/5638-a65610405a70961c.js +1 -0
  125. mage_ai/server/frontend_dist/_next/static/chunks/5810-e26a0768db1cfdba.js +1 -0
  126. mage_ai/server/frontend_dist/_next/static/chunks/5820-28adeabb5cda2b96.js +1 -0
  127. mage_ai/server/frontend_dist/_next/static/chunks/{5896-14e5a23b1c6a0769.js → 5896-7b8e36634d7d94eb.js} +1 -1
  128. mage_ai/server/frontend_dist/_next/static/chunks/600-705fe234320ec5de.js +1 -0
  129. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3122-f27de34d0b5426af.js → frontend_dist/_next/static/chunks/6285-648f9a732e100b2f.js} +1 -1
  130. mage_ai/server/frontend_dist/_next/static/chunks/6798-b904395b0c18647b.js +1 -0
  131. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/5397-b5f2e477acc6bd6b.js → frontend_dist/_next/static/chunks/6965-c613d1834c8ed92d.js} +1 -1
  132. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/7022-18fde36eb46e1d65.js → frontend_dist/_next/static/chunks/7022-e76cae3ba5ee5312.js} +1 -1
  133. mage_ai/server/frontend_dist/_next/static/chunks/722-900f786d24f91b2e.js +1 -0
  134. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/7361-694e1e4fb9c97d68.js → frontend_dist/_next/static/chunks/7361-6c5c9063b9f91700.js} +1 -1
  135. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/7858-c83d25349d0e980f.js → frontend_dist/_next/static/chunks/7858-d9df72e95e438284.js} +1 -1
  136. mage_ai/server/frontend_dist/_next/static/chunks/{8146-92e7ccfed169ee9c.js → 8146-27f0e31f309897a5.js} +1 -1
  137. mage_ai/server/frontend_dist/_next/static/chunks/8264-0d582a6ca33c3dfa.js +1 -0
  138. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3684-cbda680fd8927d07.js → frontend_dist/_next/static/chunks/8432-f191e39f9b5893f2.js} +1 -1
  139. mage_ai/server/frontend_dist/_next/static/chunks/845-9a73c65fe3fdc328.js +1 -0
  140. mage_ai/server/frontend_dist/_next/static/chunks/8487-8e1c09546dff4dbf.js +1 -0
  141. mage_ai/server/frontend_dist/_next/static/chunks/90-a7308bae028d7001.js +1 -0
  142. mage_ai/server/frontend_dist/_next/static/chunks/9264-cc44b07f248707b0.js +1 -0
  143. mage_ai/server/frontend_dist/_next/static/chunks/9618-4eb49cdbd1ba11d7.js +1 -0
  144. mage_ai/server/frontend_dist/_next/static/chunks/{976-18c98af60b76f1a7.js → 976-0a8c2c4d7acd957b.js} +1 -1
  145. mage_ai/server/frontend_dist/_next/static/chunks/framework-22b71764bf44ede4.js +1 -0
  146. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-78c4a077a2f279c2.js +1 -0
  147. mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-a24cb24b6f08bbc9.js +1 -0
  148. mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-419775ca1293b354.js +1 -0
  149. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-b37d221eb5ddc248.js +1 -0
  150. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/{[...slug]-3f6fc312f67ff72e.js → [...slug]-cfd68e760ae00958.js} +1 -1
  151. mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-data-products-f4cd03036c3e8723.js → global-data-products-c3b79ef31007f95b.js} +1 -1
  152. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-7adc543fc490367a.js +1 -0
  153. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-51d366993f6dd449.js +1 -0
  154. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-fe6e73463a20d67c.js +1 -0
  155. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-60845f0b59142f32.js +1 -0
  156. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-1d9b298fdceabbf1.js → frontend_dist/_next/static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js} +1 -1
  157. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-abd8571907664fdf.js +1 -0
  158. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{users-a7c970122a10afdc.js → users-28a930b148d99766.js} +1 -1
  159. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-d8a38b5d1f50e798.js +1 -0
  160. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/overview-a4647a274cf4dffa.js → frontend_dist/_next/static/chunks/pages/overview-f0c40645f385f23f.js} +1 -1
  161. mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipeline-runs-c79819d6826e5416.js → pipeline-runs-b35d37bfba8fbccc.js} +1 -1
  162. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-9adc2974aada27ba.js +1 -0
  163. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-51b1311dff2a974e.js +1 -0
  164. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-571c0962333b92f0.js +1 -0
  165. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-2333e524d34b474a.js +1 -0
  166. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{logs-a52d2d3e0c2978f4.js → logs-ef680455ae54ccbe.js} +1 -1
  167. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-ddddcddd2f74b4f6.js +1 -0
  168. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js +1 -0
  169. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-6d1afeb4a84f50f7.js +1 -0
  170. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-1ff9bb8e22ca1e75.js +1 -0
  171. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-ce717786f31e8f04.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js} +1 -1
  172. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-11363aa58d51f4e1.js +1 -0
  173. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-b75bf17498e87354.js +1 -0
  174. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-779c3ef0676a12ac.js +1 -0
  175. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-bbea9a088657404a.js +1 -0
  176. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/{[pipeline]-35fe7762cb83a733.js → [pipeline]-02c843b9c8418bb5.js} +1 -1
  177. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-3737f2b0afc2ede3.js +1 -0
  178. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-3c8f062913c66f3e.js +1 -0
  179. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-d6a62284c7c99cb3.js → [...slug]-b78b1be5b9ed84b9.js} +1 -1
  180. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{permissions-b1389695f758c32b.js → permissions-37b78a436eeab258.js} +1 -1
  181. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-c1f4ed17d501ccca.js +1 -0
  182. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-0bdb66265286ab22.js → [...slug]-db05a80d18c168e5.js} +1 -1
  183. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{roles-e04e18fc295ca76a.js → roles-f55c77e4f46c8d33.js} +1 -1
  184. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-2a1f8737561fdd94.js +1 -0
  185. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-0267358c91122109.js → [...slug]-e3bf6e5d8bb250c4.js} +1 -1
  186. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-50fed18bb9b8d142.js → users-20f0a050a42a015d.js} +1 -1
  187. mage_ai/server/frontend_dist/_next/static/chunks/pages/{settings-56f83205752b1323.js → settings-0f0121db7f5ff93d.js} +1 -1
  188. mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-99e2748e3c1d57a3.js +1 -0
  189. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-9370551ffa462144.js → frontend_dist/_next/static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js} +1 -1
  190. mage_ai/server/frontend_dist/_next/static/chunks/pages/{templates-3cff90df13a1a755.js → templates-1bfaa1c50e844813.js} +1 -1
  191. mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-ed121e305169cf1c.js +1 -0
  192. mage_ai/server/frontend_dist/_next/static/chunks/pages/test-9ae68758102cc843.js +1 -0
  193. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-8bdd858240d5dbf6.js +1 -0
  194. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-dd4fb405695f74bf.js +1 -0
  195. mage_ai/server/frontend_dist/_next/static/chunks/{webpack-8af2b89c5a3779fc.js → webpack-fea697dd168c6d0c.js} +1 -1
  196. mage_ai/server/frontend_dist/block-layout.html +2 -2
  197. mage_ai/server/frontend_dist/compute.html +5 -5
  198. mage_ai/server/frontend_dist/files.html +5 -5
  199. mage_ai/server/frontend_dist/global-data-products/[...slug].html +5 -5
  200. mage_ai/server/frontend_dist/global-data-products.html +5 -5
  201. mage_ai/server/frontend_dist/global-hooks/[...slug].html +24 -0
  202. mage_ai/server/frontend_dist/global-hooks.html +24 -0
  203. mage_ai/server/frontend_dist/index.html +2 -2
  204. mage_ai/server/frontend_dist/manage/files.html +5 -5
  205. mage_ai/server/frontend_dist/manage/settings.html +5 -5
  206. mage_ai/server/frontend_dist/manage/users/[user].html +5 -5
  207. mage_ai/server/frontend_dist/manage/users/new.html +5 -5
  208. mage_ai/server/frontend_dist/manage/users.html +5 -5
  209. mage_ai/server/frontend_dist/manage.html +5 -5
  210. mage_ai/server/frontend_dist/oauth.html +4 -4
  211. mage_ai/server/frontend_dist/overview.html +5 -5
  212. mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
  213. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
  214. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
  215. mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +5 -5
  216. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  217. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
  218. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
  219. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
  220. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
  221. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
  222. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
  223. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +5 -5
  224. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
  225. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
  226. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
  227. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  228. mage_ai/server/frontend_dist/pipelines.html +5 -5
  229. mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
  230. mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +5 -5
  231. mage_ai/server/frontend_dist/settings/workspace/permissions.html +5 -5
  232. mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
  233. mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +5 -5
  234. mage_ai/server/frontend_dist/settings/workspace/roles.html +5 -5
  235. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +5 -5
  236. mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +5 -5
  237. mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
  238. mage_ai/server/frontend_dist/settings.html +2 -2
  239. mage_ai/server/frontend_dist/sign-in.html +24 -25
  240. mage_ai/server/frontend_dist/templates/[...slug].html +5 -5
  241. mage_ai/server/frontend_dist/templates.html +5 -5
  242. mage_ai/server/frontend_dist/terminal.html +5 -5
  243. mage_ai/server/frontend_dist/test.html +15 -15
  244. mage_ai/server/frontend_dist/triggers.html +5 -5
  245. mage_ai/server/frontend_dist/version-control.html +5 -5
  246. mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
  247. mage_ai/server/frontend_dist_base_path_template/_next/static/aoO6jYZLVlUGCCdY-wmy8/_buildManifest.js +1 -0
  248. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1749-bf512b4dabbab7fa.js +1 -0
  249. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{7519-8c29bbb92e03cc77.js → 1845-5ce774d5ab81ed57.js} +1 -1
  250. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-57858e7445d24413.js +1 -0
  251. mage_ai/server/{frontend_dist/_next/static/chunks/2714-1e79e9f2e998b544.js → frontend_dist_base_path_template/_next/static/chunks/2714-68fef54789d7eaeb.js} +1 -1
  252. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-92cdffd87b6f6e05.js +1 -0
  253. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-715ca383fa15a5ef.js +1 -0
  254. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3437-b4d6a037cf5781f8.js +1 -0
  255. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-c9fb980f03df6450.js +1 -0
  256. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4267-cb102e060a43d9bd.js +1 -0
  257. mage_ai/server/{frontend_dist/_next/static/chunks/3932-0ceca9599d6e6d00.js → frontend_dist_base_path_template/_next/static/chunks/4366-3e52497942acbafe.js} +1 -1
  258. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{4783-1a21d9be47574bba.js → 4783-422429203610c318.js} +1 -1
  259. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-949640f4037bf12f.js +1 -0
  260. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5499-76cf8f023c6b0985.js +1 -0
  261. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/553-7f7919e14392ca67.js +1 -0
  262. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5638-a65610405a70961c.js +1 -0
  263. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-e26a0768db1cfdba.js +1 -0
  264. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5820-28adeabb5cda2b96.js +1 -0
  265. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{5896-14e5a23b1c6a0769.js → 5896-7b8e36634d7d94eb.js} +1 -1
  266. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/600-705fe234320ec5de.js +1 -0
  267. mage_ai/server/{frontend_dist/_next/static/chunks/3122-f27de34d0b5426af.js → frontend_dist_base_path_template/_next/static/chunks/6285-648f9a732e100b2f.js} +1 -1
  268. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6798-b904395b0c18647b.js +1 -0
  269. mage_ai/server/{frontend_dist/_next/static/chunks/5397-b5f2e477acc6bd6b.js → frontend_dist_base_path_template/_next/static/chunks/6965-c613d1834c8ed92d.js} +1 -1
  270. mage_ai/server/{frontend_dist/_next/static/chunks/7022-18fde36eb46e1d65.js → frontend_dist_base_path_template/_next/static/chunks/7022-e76cae3ba5ee5312.js} +1 -1
  271. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/722-900f786d24f91b2e.js +1 -0
  272. mage_ai/server/{frontend_dist/_next/static/chunks/7361-694e1e4fb9c97d68.js → frontend_dist_base_path_template/_next/static/chunks/7361-6c5c9063b9f91700.js} +1 -1
  273. mage_ai/server/{frontend_dist/_next/static/chunks/7858-c83d25349d0e980f.js → frontend_dist_base_path_template/_next/static/chunks/7858-d9df72e95e438284.js} +1 -1
  274. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{8146-92e7ccfed169ee9c.js → 8146-27f0e31f309897a5.js} +1 -1
  275. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-0d582a6ca33c3dfa.js +1 -0
  276. mage_ai/server/{frontend_dist/_next/static/chunks/3684-cbda680fd8927d07.js → frontend_dist_base_path_template/_next/static/chunks/8432-f191e39f9b5893f2.js} +1 -1
  277. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/845-9a73c65fe3fdc328.js +1 -0
  278. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8487-8e1c09546dff4dbf.js +1 -0
  279. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/90-a7308bae028d7001.js +1 -0
  280. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-cc44b07f248707b0.js +1 -0
  281. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9618-4eb49cdbd1ba11d7.js +1 -0
  282. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{976-18c98af60b76f1a7.js → 976-0a8c2c4d7acd957b.js} +1 -1
  283. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/framework-22b71764bf44ede4.js +1 -0
  284. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-78c4a077a2f279c2.js +1 -0
  285. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-a24cb24b6f08bbc9.js +1 -0
  286. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-419775ca1293b354.js +1 -0
  287. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-b37d221eb5ddc248.js +1 -0
  288. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/{[...slug]-3f6fc312f67ff72e.js → [...slug]-cfd68e760ae00958.js} +1 -1
  289. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-data-products-f4cd03036c3e8723.js → global-data-products-c3b79ef31007f95b.js} +1 -1
  290. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-7adc543fc490367a.js +1 -0
  291. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-51d366993f6dd449.js +1 -0
  292. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-fe6e73463a20d67c.js +1 -0
  293. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-60845f0b59142f32.js +1 -0
  294. mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage/users/[user]-1d9b298fdceabbf1.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js} +1 -1
  295. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-abd8571907664fdf.js +1 -0
  296. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{users-a7c970122a10afdc.js → users-28a930b148d99766.js} +1 -1
  297. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-d8a38b5d1f50e798.js +1 -0
  298. mage_ai/server/{frontend_dist/_next/static/chunks/pages/overview-a4647a274cf4dffa.js → frontend_dist_base_path_template/_next/static/chunks/pages/overview-f0c40645f385f23f.js} +1 -1
  299. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{pipeline-runs-c79819d6826e5416.js → pipeline-runs-b35d37bfba8fbccc.js} +1 -1
  300. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-9adc2974aada27ba.js +1 -0
  301. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-51b1311dff2a974e.js +1 -0
  302. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-571c0962333b92f0.js +1 -0
  303. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-2333e524d34b474a.js +1 -0
  304. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{logs-a52d2d3e0c2978f4.js → logs-ef680455ae54ccbe.js} +1 -1
  305. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-ddddcddd2f74b4f6.js +1 -0
  306. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js +1 -0
  307. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-6d1afeb4a84f50f7.js +1 -0
  308. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-1ff9bb8e22ca1e75.js +1 -0
  309. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-ce717786f31e8f04.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js} +1 -1
  310. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-11363aa58d51f4e1.js +1 -0
  311. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-b75bf17498e87354.js +1 -0
  312. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-779c3ef0676a12ac.js +1 -0
  313. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-bbea9a088657404a.js +1 -0
  314. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/{[pipeline]-35fe7762cb83a733.js → [pipeline]-02c843b9c8418bb5.js} +1 -1
  315. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-3737f2b0afc2ede3.js +1 -0
  316. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-3c8f062913c66f3e.js +1 -0
  317. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-d6a62284c7c99cb3.js → [...slug]-b78b1be5b9ed84b9.js} +1 -1
  318. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{permissions-b1389695f758c32b.js → permissions-37b78a436eeab258.js} +1 -1
  319. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-c1f4ed17d501ccca.js +1 -0
  320. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-0bdb66265286ab22.js → [...slug]-db05a80d18c168e5.js} +1 -1
  321. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{roles-e04e18fc295ca76a.js → roles-f55c77e4f46c8d33.js} +1 -1
  322. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-2a1f8737561fdd94.js +1 -0
  323. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-0267358c91122109.js → [...slug]-e3bf6e5d8bb250c4.js} +1 -1
  324. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{users-50fed18bb9b8d142.js → users-20f0a050a42a015d.js} +1 -1
  325. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{settings-56f83205752b1323.js → settings-0f0121db7f5ff93d.js} +1 -1
  326. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-99e2748e3c1d57a3.js +1 -0
  327. mage_ai/server/{frontend_dist/_next/static/chunks/pages/templates/[...slug]-9370551ffa462144.js → frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js} +1 -1
  328. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{templates-3cff90df13a1a755.js → templates-1bfaa1c50e844813.js} +1 -1
  329. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-ed121e305169cf1c.js +1 -0
  330. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-9ae68758102cc843.js +1 -0
  331. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-8bdd858240d5dbf6.js +1 -0
  332. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-dd4fb405695f74bf.js +1 -0
  333. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{webpack-074f3eb2281fba79.js → webpack-d30cb09c85b4c4f0.js} +1 -1
  334. mage_ai/server/frontend_dist_base_path_template/block-layout.html +2 -2
  335. mage_ai/server/frontend_dist_base_path_template/compute.html +5 -5
  336. mage_ai/server/frontend_dist_base_path_template/files.html +5 -5
  337. mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +5 -5
  338. mage_ai/server/frontend_dist_base_path_template/global-data-products.html +5 -5
  339. mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +24 -0
  340. mage_ai/server/frontend_dist_base_path_template/global-hooks.html +24 -0
  341. mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
  342. mage_ai/server/frontend_dist_base_path_template/manage/files.html +5 -5
  343. mage_ai/server/frontend_dist_base_path_template/manage/settings.html +5 -5
  344. mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +5 -5
  345. mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +5 -5
  346. mage_ai/server/frontend_dist_base_path_template/manage/users.html +5 -5
  347. mage_ai/server/frontend_dist_base_path_template/manage.html +5 -5
  348. mage_ai/server/frontend_dist_base_path_template/oauth.html +4 -4
  349. mage_ai/server/frontend_dist_base_path_template/overview.html +5 -5
  350. mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +5 -5
  351. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +5 -5
  352. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +5 -5
  353. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +5 -5
  354. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
  355. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +5 -5
  356. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +5 -5
  357. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
  358. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +5 -5
  359. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +5 -5
  360. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +5 -5
  361. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +5 -5
  362. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +5 -5
  363. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +5 -5
  364. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +5 -5
  365. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
  366. mage_ai/server/frontend_dist_base_path_template/pipelines.html +5 -5
  367. mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +5 -5
  368. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +5 -5
  369. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +5 -5
  370. mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +5 -5
  371. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +5 -5
  372. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +5 -5
  373. mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +5 -5
  374. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +5 -5
  375. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +5 -5
  376. mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
  377. mage_ai/server/frontend_dist_base_path_template/sign-in.html +28 -29
  378. mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +5 -5
  379. mage_ai/server/frontend_dist_base_path_template/templates.html +5 -5
  380. mage_ai/server/frontend_dist_base_path_template/terminal.html +5 -5
  381. mage_ai/server/frontend_dist_base_path_template/test.html +15 -15
  382. mage_ai/server/frontend_dist_base_path_template/triggers.html +5 -5
  383. mage_ai/server/frontend_dist_base_path_template/version-control.html +5 -5
  384. mage_ai/server/server.py +44 -12
  385. mage_ai/server/utils/output_display.py +6 -0
  386. mage_ai/server/websocket_server.py +14 -0
  387. mage_ai/services/aws/emr/config.py +1 -0
  388. mage_ai/services/aws/emr/constants.py +1 -0
  389. mage_ai/services/aws/emr/emr.py +20 -7
  390. mage_ai/services/compute/__init__.py +0 -0
  391. mage_ai/services/compute/aws/__init__.py +0 -0
  392. mage_ai/services/compute/aws/constants.py +21 -0
  393. mage_ai/services/compute/aws/models.py +459 -0
  394. mage_ai/services/compute/aws/steps.py +482 -0
  395. mage_ai/services/compute/constants.py +27 -0
  396. mage_ai/services/compute/models.py +212 -0
  397. mage_ai/services/k8s/job_manager.py +4 -0
  398. mage_ai/services/spark/api/aws_emr.py +38 -0
  399. mage_ai/services/spark/api/base.py +7 -4
  400. mage_ai/services/spark/api/constants.py +4 -0
  401. mage_ai/services/spark/api/local.py +25 -24
  402. mage_ai/services/spark/api/service.py +15 -5
  403. mage_ai/services/spark/constants.py +1 -1
  404. mage_ai/services/spark/models/applications.py +45 -3
  405. mage_ai/services/spark/models/base.py +3 -19
  406. mage_ai/services/spark/models/environments.py +16 -11
  407. mage_ai/services/spark/models/executors.py +2 -2
  408. mage_ai/services/spark/models/sqls.py +46 -15
  409. mage_ai/services/spark/models/stages.py +55 -32
  410. mage_ai/services/spark/models/threads.py +2 -2
  411. mage_ai/services/spark/utils.py +22 -6
  412. mage_ai/services/ssh/__init__.py +0 -0
  413. mage_ai/services/ssh/aws/__init__.py +0 -0
  414. mage_ai/services/ssh/aws/emr/__init__.py +0 -0
  415. mage_ai/services/ssh/aws/emr/constants.py +10 -0
  416. mage_ai/services/ssh/aws/emr/models.py +326 -0
  417. mage_ai/services/ssh/aws/emr/utils.py +151 -0
  418. mage_ai/settings/__init__.py +8 -1
  419. mage_ai/settings/repo.py +3 -0
  420. mage_ai/settings/secret_generation.py +7 -0
  421. mage_ai/settings/sso.py +8 -0
  422. mage_ai/shared/files.py +47 -0
  423. mage_ai/shared/hash.py +16 -0
  424. mage_ai/shared/models.py +254 -0
  425. mage_ai/streaming/constants.py +3 -0
  426. mage_ai/streaming/sinks/postgres.py +2 -0
  427. mage_ai/streaming/sinks/rabbitmq.py +76 -0
  428. mage_ai/streaming/sinks/sink_factory.py +4 -0
  429. mage_ai/streaming/sources/activemq.py +89 -0
  430. mage_ai/streaming/sources/nats_js.py +182 -0
  431. mage_ai/streaming/sources/source_factory.py +8 -0
  432. mage_ai/tests/ai/test_ai_functions.py +53 -8
  433. mage_ai/tests/api/endpoints/test_oauths.py +33 -0
  434. mage_ai/tests/api/endpoints/test_projects.py +1 -0
  435. mage_ai/tests/api/endpoints/test_workspaces.py +55 -0
  436. mage_ai/tests/api/operations/test_base.py +7 -5
  437. mage_ai/tests/api/operations/test_operations.py +0 -1
  438. mage_ai/tests/api/operations/test_operations_with_hooks.py +622 -0
  439. mage_ai/tests/api/operations/test_syncs.py +0 -1
  440. mage_ai/tests/api/operations/test_users.py +13 -2
  441. mage_ai/tests/api/policies/test_oauth_policy.py +38 -0
  442. mage_ai/tests/data_preparation/models/global_hooks/__init__.py +0 -0
  443. mage_ai/tests/data_preparation/models/global_hooks/test_global_hooks.py +600 -0
  444. mage_ai/tests/data_preparation/models/global_hooks/test_hook.py +804 -0
  445. mage_ai/tests/data_preparation/models/global_hooks/test_predicates.py +803 -0
  446. mage_ai/tests/data_preparation/models/global_hooks/test_utils.py +38 -0
  447. mage_ai/tests/data_preparation/models/test_block.py +26 -0
  448. mage_ai/tests/data_preparation/models/test_pipeline.py +15 -0
  449. mage_ai/tests/data_preparation/test_repo_manager.py +11 -0
  450. mage_ai/tests/factory.py +105 -5
  451. mage_ai/tests/orchestration/queue/test_process_queue.py +15 -2
  452. mage_ai/tests/orchestration/test_pipeline_scheduler.py +82 -1
  453. mage_ai/tests/services/k8s/test_job_manager.py +38 -1
  454. mage_ai/tests/shared/mixins.py +328 -0
  455. mage_ai/tests/shared/test_hash.py +17 -1
  456. mage_ai/tests/streaming/sinks/test_rabbitmq.py +36 -0
  457. mage_ai/tests/streaming/sources/test_activemq.py +32 -0
  458. mage_ai/tests/streaming/sources/test_nats_js.py +32 -0
  459. mage_ai/tests/streaming/sources/test_source_factory.py +26 -1
  460. {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/METADATA +14 -4
  461. {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/RECORD +467 -386
  462. {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/WHEEL +1 -1
  463. mage_ai/authentication/oauth/active_directory.py +0 -17
  464. mage_ai/server/frontend_dist/_next/static/chunks/1125-91d3ce33140ef041.js +0 -1
  465. mage_ai/server/frontend_dist/_next/static/chunks/1749-607014ecf28268bf.js +0 -1
  466. mage_ai/server/frontend_dist/_next/static/chunks/1952-573c7fc7ad84da6e.js +0 -1
  467. mage_ai/server/frontend_dist/_next/static/chunks/3004-231cad9039ae5dcb.js +0 -1
  468. mage_ai/server/frontend_dist/_next/static/chunks/3419-0873e170ef7d6303.js +0 -1
  469. mage_ai/server/frontend_dist/_next/static/chunks/3943-9e1105393a3be0de.js +0 -1
  470. mage_ai/server/frontend_dist/_next/static/chunks/4267-335766a915ee2fa9.js +0 -1
  471. mage_ai/server/frontend_dist/_next/static/chunks/5457-8be2e0a3fe0ba64b.js +0 -1
  472. mage_ai/server/frontend_dist/_next/static/chunks/5499-bca977f466e259e1.js +0 -1
  473. mage_ai/server/frontend_dist/_next/static/chunks/553-edf533e634e85192.js +0 -1
  474. mage_ai/server/frontend_dist/_next/static/chunks/5810-37c6091b29a1fe53.js +0 -1
  475. mage_ai/server/frontend_dist/_next/static/chunks/600-0733eb84f0a0a9e0.js +0 -1
  476. mage_ai/server/frontend_dist/_next/static/chunks/6333-95ad799d13326dce.js +0 -1
  477. mage_ai/server/frontend_dist/_next/static/chunks/722-2a171fe616310f60.js +0 -1
  478. mage_ai/server/frontend_dist/_next/static/chunks/8224-39a93ee1058b6069.js +0 -1
  479. mage_ai/server/frontend_dist/_next/static/chunks/8264-6ef8fdb195694807.js +0 -1
  480. mage_ai/server/frontend_dist/_next/static/chunks/8487-032ef9b17d20aad9.js +0 -1
  481. mage_ai/server/frontend_dist/_next/static/chunks/9264-1b5c4b071ed544c3.js +0 -1
  482. mage_ai/server/frontend_dist/_next/static/chunks/framework-7c365855dab1bf41.js +0 -1
  483. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-1203afde83fa2d6e.js +0 -1
  484. mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-c465c14d48392b11.js +0 -1
  485. mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-b1f8d5a7a9a30f2d.js +0 -1
  486. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-93c094bad0f299fb.js +0 -1
  487. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-891e5bd5935f7473.js +0 -1
  488. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-d2e4ee4e68d36807.js +0 -1
  489. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-4a49126fcfe8ced0.js +0 -1
  490. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-5f8c5d0bc6ad1113.js +0 -1
  491. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-b4c0a36c69c346a4.js +0 -1
  492. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-a9266d353f288e8c.js +0 -1
  493. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-b5c29c852262312e.js +0 -1
  494. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-9f233917aa72ad82.js +0 -1
  495. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-5af599da035252a7.js +0 -1
  496. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-8597f8e13d80ee48.js +0 -1
  497. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-5e0d047a6c9cb1fc.js +0 -1
  498. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-b0a508aa52914dad.js +0 -1
  499. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-074c32397d341de9.js +0 -1
  500. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-50f5d8706ed0bc73.js +0 -1
  501. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-e151c1552fcb67bd.js +0 -1
  502. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-95394769a783c6c7.js +0 -1
  503. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-8336c4326f1e7d96.js +0 -1
  504. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-01dd679e4a21e0d9.js +0 -1
  505. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-4d9051c073a9b2ff.js +0 -1
  506. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-5a306deca6717862.js +0 -1
  507. mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-0dbc5b11019e78a0.js +0 -1
  508. mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-578d862f3e56e6e6.js +0 -1
  509. mage_ai/server/frontend_dist/_next/static/chunks/pages/test-1c0588d685b909b9.js +0 -1
  510. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-ffaab4c013e62ba1.js +0 -1
  511. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-114000e84313994f.js +0 -1
  512. mage_ai/server/frontend_dist/_next/static/icIDjCezcfhiKL87kgeSY/_buildManifest.js +0 -1
  513. mage_ai/server/frontend_dist_base_path_template/_next/static/_O1kJQLGtZmoBMyWpQrea/_buildManifest.js +0 -1
  514. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1125-91d3ce33140ef041.js +0 -1
  515. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1749-607014ecf28268bf.js +0 -1
  516. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-573c7fc7ad84da6e.js +0 -1
  517. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3004-231cad9039ae5dcb.js +0 -1
  518. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-0873e170ef7d6303.js +0 -1
  519. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-9e1105393a3be0de.js +0 -1
  520. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4267-335766a915ee2fa9.js +0 -1
  521. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-8be2e0a3fe0ba64b.js +0 -1
  522. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5499-bca977f466e259e1.js +0 -1
  523. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/553-edf533e634e85192.js +0 -1
  524. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-37c6091b29a1fe53.js +0 -1
  525. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/600-0733eb84f0a0a9e0.js +0 -1
  526. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6333-95ad799d13326dce.js +0 -1
  527. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/722-2a171fe616310f60.js +0 -1
  528. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8224-39a93ee1058b6069.js +0 -1
  529. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-6ef8fdb195694807.js +0 -1
  530. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8487-032ef9b17d20aad9.js +0 -1
  531. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-1b5c4b071ed544c3.js +0 -1
  532. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/framework-7c365855dab1bf41.js +0 -1
  533. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-1203afde83fa2d6e.js +0 -1
  534. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-c465c14d48392b11.js +0 -1
  535. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-b1f8d5a7a9a30f2d.js +0 -1
  536. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-93c094bad0f299fb.js +0 -1
  537. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-891e5bd5935f7473.js +0 -1
  538. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-d2e4ee4e68d36807.js +0 -1
  539. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-4a49126fcfe8ced0.js +0 -1
  540. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-5f8c5d0bc6ad1113.js +0 -1
  541. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-b4c0a36c69c346a4.js +0 -1
  542. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-a9266d353f288e8c.js +0 -1
  543. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-b5c29c852262312e.js +0 -1
  544. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-9f233917aa72ad82.js +0 -1
  545. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-5af599da035252a7.js +0 -1
  546. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-8597f8e13d80ee48.js +0 -1
  547. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-5e0d047a6c9cb1fc.js +0 -1
  548. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-b0a508aa52914dad.js +0 -1
  549. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-074c32397d341de9.js +0 -1
  550. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-50f5d8706ed0bc73.js +0 -1
  551. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-e151c1552fcb67bd.js +0 -1
  552. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-95394769a783c6c7.js +0 -1
  553. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-8336c4326f1e7d96.js +0 -1
  554. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-01dd679e4a21e0d9.js +0 -1
  555. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-4d9051c073a9b2ff.js +0 -1
  556. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-5a306deca6717862.js +0 -1
  557. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-0dbc5b11019e78a0.js +0 -1
  558. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-578d862f3e56e6e6.js +0 -1
  559. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-1c0588d685b909b9.js +0 -1
  560. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-ffaab4c013e62ba1.js +0 -1
  561. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-114000e84313994f.js +0 -1
  562. /mage_ai/server/frontend_dist/_next/static/{icIDjCezcfhiKL87kgeSY → N3FS4bHv0jpYeeg672uYK}/_ssgManifest.js +0 -0
  563. /mage_ai/server/frontend_dist_base_path_template/_next/static/{_O1kJQLGtZmoBMyWpQrea → aoO6jYZLVlUGCCdY-wmy8}/_ssgManifest.js +0 -0
  564. {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/LICENSE +0 -0
  565. {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/entry_points.txt +0 -0
  566. {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/top_level.txt +0 -0
@@ -1,12 +1,12 @@
1
1
  import asyncio
2
+ import collections
2
3
  import enum
3
4
  import traceback
4
5
  import uuid
5
6
  from datetime import datetime, timedelta, timezone
6
- from itertools import groupby
7
7
  from math import ceil
8
8
  from statistics import stdev
9
- from typing import Dict, List
9
+ from typing import DefaultDict, Dict, List
10
10
 
11
11
  import dateutil.parser
12
12
  import pytz
@@ -119,6 +119,18 @@ class PipelineSchedule(BaseModel):
119
119
  query = query.filter(PipelineRun.pipeline_schedule_id.in_(ids))
120
120
  return query.all()
121
121
 
122
+ @classmethod
123
+ def fetch_latest_pipeline_runs_without_retries(self, ids: List[int]) -> List:
124
+ query = PipelineRun.query
125
+ query.cache = True
126
+ query = (
127
+ query.
128
+ filter(PipelineRun.pipeline_schedule_id.in_(ids)).
129
+ group_by(PipelineRun.execution_date).
130
+ order_by(func.max(PipelineRun.started_at))
131
+ )
132
+ return query.all()
133
+
122
134
  def get_settings(self) -> 'SettingsConfig':
123
135
  settings = self.settings if self.settings else dict()
124
136
  return SettingsConfig.load(config=settings)
@@ -491,46 +503,61 @@ class PipelineSchedule(BaseModel):
491
503
 
492
504
  return (self.settings or {}).get('landing_time_enabled', False)
493
505
 
494
- def runtime_history(
506
+ def recently_completed_pipeline_runs(
495
507
  self,
496
508
  pipeline_run=None,
497
509
  sample_size: int = None,
498
- ) -> List[float]:
499
- sample_size_to_use = sample_size if sample_size else 7
500
- previous_runtimes = []
510
+ ):
511
+ pipeline_runs = (
512
+ PipelineRun.
513
+ query.
514
+ filter(
515
+ PipelineRun.pipeline_schedule_id == self.id,
516
+ PipelineRun.status == PipelineRun.PipelineRunStatus.COMPLETED,
517
+ )
518
+ )
501
519
 
502
520
  if pipeline_run:
503
- previous_runtimes += (pipeline_run.metrics or {}).get('previous_runtimes', [])
504
-
505
- if len(previous_runtimes) < sample_size_to_use - 1 if pipeline_run else sample_size_to_use:
506
521
  pipeline_runs = (
507
- PipelineRun.
508
- query.
522
+ pipeline_runs.
509
523
  filter(
510
- PipelineRun.pipeline_schedule_id == self.id,
511
- PipelineRun.status == PipelineRun.PipelineRunStatus.COMPLETED,
524
+ PipelineRun.id != pipeline_run.id,
512
525
  )
513
526
  )
514
527
 
515
- if pipeline_run:
516
- pipeline_runs = (
517
- pipeline_runs.
518
- filter(
519
- PipelineRun.id != pipeline_run.id,
520
- )
521
- )
528
+ pipeline_runs = (
529
+ pipeline_runs.
530
+ order_by(PipelineRun.execution_date.desc())
531
+ )
522
532
 
523
- pipeline_runs = (
524
- pipeline_runs.
525
- order_by(PipelineRun.execution_date.desc()).
526
- limit(sample_size_to_use).
527
- all()
528
- )
533
+ if sample_size:
534
+ pipeline_runs = pipeline_runs.limit(sample_size)
535
+
536
+ pipeline_runs = pipeline_runs.all()
537
+
538
+ pipeline_runs = sorted(
539
+ pipeline_runs,
540
+ key=lambda pr: pr.execution_date,
541
+ reverse=True,
542
+ )
543
+
544
+ return pipeline_runs
529
545
 
530
- pipeline_runs = sorted(
531
- pipeline_runs,
532
- key=lambda pr: pr.execution_date,
533
- reverse=True,
546
+ def runtime_history(
547
+ self,
548
+ pipeline_run=None,
549
+ sample_size: int = None,
550
+ ) -> List[float]:
551
+ sample_size_to_use = sample_size if sample_size else 7
552
+ previous_runtimes = []
553
+
554
+ if pipeline_run:
555
+ previous_runtimes += (pipeline_run.metrics or {}).get('previous_runtimes', [])
556
+
557
+ if len(previous_runtimes) < sample_size_to_use - 1 if pipeline_run else sample_size_to_use:
558
+ pipeline_runs = self.recently_completed_pipeline_runs(
559
+ pipeline_run=pipeline_run,
560
+ sample_size=sample_size_to_use,
534
561
  )
535
562
 
536
563
  for pr in pipeline_runs:
@@ -657,7 +684,7 @@ class PipelineRun(BaseModel):
657
684
  def pipeline_type(self) -> PipelineType:
658
685
  pipeline = Pipeline.get(self.pipeline_uuid, check_if_exists=True)
659
686
 
660
- return self.pipeline.type if pipeline is not None else None
687
+ return pipeline.type if pipeline is not None else None
661
688
 
662
689
  @property
663
690
  def logs(self):
@@ -667,6 +694,43 @@ class PipelineRun(BaseModel):
667
694
  repo_config=self.pipeline.repo_config,
668
695
  ).get_logs()
669
696
 
697
+ @classmethod
698
+ def recently_completed_pipeline_runs(
699
+ self,
700
+ pipeline_uuid: str,
701
+ pipeline_run_id: int = None,
702
+ pipeline_schedule_id: int = None,
703
+ sample_size: int = None,
704
+ ):
705
+ pipeline_runs = (
706
+ self.
707
+ query.
708
+ filter(
709
+ self.pipeline_uuid == pipeline_uuid,
710
+ self.status == self.PipelineRunStatus.COMPLETED,
711
+ )
712
+ )
713
+
714
+ if pipeline_run_id is not None:
715
+ pipeline_runs = pipeline_runs.filter(self.id != pipeline_run_id)
716
+
717
+ if pipeline_schedule_id is not None:
718
+ pipeline_runs = pipeline_runs.filter(self.pipeline_schedule_id == pipeline_schedule_id)
719
+
720
+ pipeline_runs = pipeline_runs.order_by(PipelineRun.execution_date.desc())
721
+
722
+ if sample_size:
723
+ pipeline_runs = pipeline_runs.limit(sample_size)
724
+
725
+ pipeline_runs = pipeline_runs.all()
726
+ pipeline_runs = sorted(
727
+ pipeline_runs,
728
+ key=lambda pr: pr.execution_date,
729
+ reverse=True,
730
+ )
731
+
732
+ return pipeline_runs
733
+
670
734
  async def logs_async(self):
671
735
  return await LoggerManagerFactory.get_logger_manager(
672
736
  pipeline_uuid=self.pipeline_uuid,
@@ -690,7 +754,7 @@ class PipelineRun(BaseModel):
690
754
  def pipeline_tags(self):
691
755
  pipeline = Pipeline.get(self.pipeline_uuid, check_if_exists=True)
692
756
 
693
- return self.pipeline.tags if pipeline is not None else []
757
+ return pipeline.tags if pipeline is not None else []
694
758
 
695
759
  def executable_block_runs(
696
760
  self,
@@ -865,7 +929,7 @@ class PipelineRun(BaseModel):
865
929
  self,
866
930
  pipeline_uuids: List[str],
867
931
  include_block_runs: bool = False,
868
- ) -> Dict[str, List['PipelineRun']]:
932
+ ) -> DefaultDict[str, List['PipelineRun']]:
869
933
  """
870
934
  Get a dictionary of active pipeline runs grouped by pipeline uuid.
871
935
  """
@@ -874,9 +938,9 @@ class PipelineRun(BaseModel):
874
938
  pipeline_uuids,
875
939
  include_block_runs=include_block_runs,
876
940
  )
877
- grouped = {}
878
- for key, runs in groupby(active_runs, key=lambda x: x.pipeline_uuid):
879
- grouped[key] = list(runs)
941
+ grouped = collections.defaultdict(list)
942
+ for run in active_runs:
943
+ grouped[run.pipeline_uuid].append(run)
880
944
  return grouped
881
945
 
882
946
  @classmethod
@@ -1,8 +1,8 @@
1
1
  import asyncio
2
+ import collections
2
3
  import os
3
4
  import traceback
4
5
  from datetime import datetime, timedelta
5
- from itertools import groupby
6
6
  from typing import Any, Dict, List, Set, Tuple
7
7
 
8
8
  import pytz
@@ -75,11 +75,15 @@ class PipelineScheduler:
75
75
  # Get the list of integration stream if the pipeline is data integration pipeline
76
76
  self.streams = []
77
77
  if self.pipeline.type == PipelineType.INTEGRATION:
78
- self.streams = self.pipeline.streams(
79
- self.pipeline_run.get_variables(
80
- extra_variables=get_extra_variables(self.pipeline)
78
+ try:
79
+ self.streams = self.pipeline.streams(
80
+ self.pipeline_run.get_variables(
81
+ extra_variables=get_extra_variables(self.pipeline)
82
+ )
81
83
  )
82
- )
84
+ except Exception:
85
+ logger.exception(f'Fail to get streams for {pipeline_run}')
86
+ traceback.print_exc()
83
87
 
84
88
  # Initialize the logger
85
89
  self.logger_manager = LoggerManagerFactory.get_logger_manager(
@@ -192,6 +196,19 @@ class PipelineScheduler:
192
196
  if PipelineType.STREAMING == self.pipeline.type:
193
197
  self.__schedule_pipeline()
194
198
  else:
199
+ schedule = PipelineSchedule.get(
200
+ self.pipeline_run.pipeline_schedule_id,
201
+ )
202
+ backfills = schedule.backfills if schedule else []
203
+ backfill = backfills[0] if len(backfills) >= 1 else None
204
+
205
+ if backfill is not None and \
206
+ backfill.status == Backfill.Status.INITIAL and \
207
+ self.pipeline_run.status == PipelineRun.PipelineRunStatus.RUNNING:
208
+ backfill.update(
209
+ status=Backfill.Status.RUNNING,
210
+ )
211
+
195
212
  if self.pipeline_run.all_blocks_completed(self.allow_blocks_to_fail):
196
213
  if PipelineType.INTEGRATION == self.pipeline.type:
197
214
  tags = self.build_tags()
@@ -221,17 +238,20 @@ class PipelineScheduler:
221
238
 
222
239
  self.logger_manager.output_logs_to_destination()
223
240
 
224
- schedule = PipelineSchedule.get(
225
- self.pipeline_run.pipeline_schedule_id,
226
- )
227
-
228
241
  if schedule:
229
- backfills = schedule.backfills
230
- # When all pipeline runs that are associated with backfill is done
231
- if len(backfills) >= 1:
232
- backfill = backfills[0]
242
+ if backfill is not None:
243
+ """
244
+ Exclude old pipeline run retries associated with the backfill
245
+ (if a backfill's runs had failed and the backfill was retried, those
246
+ previous runs are no longer relevant) and check if the backfill's
247
+ latest pipeline runs with different execution dates were successfull.
248
+ """
249
+ latest_pipeline_runs = \
250
+ PipelineSchedule.fetch_latest_pipeline_runs_without_retries(
251
+ [backfill.pipeline_schedule_id]
252
+ )
233
253
  if all([PipelineRun.PipelineRunStatus.COMPLETED == pr.status
234
- for pr in backfill.pipeline_runs]):
254
+ for pr in latest_pipeline_runs]):
235
255
  backfill.update(
236
256
  completed_at=datetime.now(tz=pytz.UTC),
237
257
  status=Backfill.Status.COMPLETED,
@@ -251,6 +271,20 @@ class PipelineScheduler:
251
271
  self.pipeline_run.update(
252
272
  status=PipelineRun.PipelineRunStatus.FAILED)
253
273
 
274
+ # Backfill status updated to "failed" if at least 1 of its pipeline runs failed
275
+ if backfill is not None:
276
+ latest_pipeline_runs = \
277
+ PipelineSchedule.fetch_latest_pipeline_runs_without_retries(
278
+ [backfill.pipeline_schedule_id]
279
+ )
280
+ if any(
281
+ [PipelineRun.PipelineRunStatus.FAILED == pr.status
282
+ for pr in latest_pipeline_runs]
283
+ ):
284
+ backfill.update(
285
+ status=Backfill.Status.FAILED,
286
+ )
287
+
254
288
  asyncio.run(UsageStatisticLogger().pipeline_run_ended(self.pipeline_run))
255
289
 
256
290
  failed_block_runs = self.pipeline_run.failed_block_runs
@@ -1417,10 +1451,9 @@ def schedule_all():
1417
1451
  active_pipeline_uuids = list(set([s.pipeline_uuid for s in active_pipeline_schedules]))
1418
1452
  pipeline_runs_by_pipeline = PipelineRun.active_runs_for_pipelines_grouped(active_pipeline_uuids)
1419
1453
 
1420
- pipeline_schedules_by_pipeline = {
1421
- key: list(runs)
1422
- for key, runs in groupby(active_pipeline_schedules, key=lambda x: x.pipeline_uuid)
1423
- }
1454
+ pipeline_schedules_by_pipeline = collections.defaultdict(list)
1455
+ for schedule in active_pipeline_schedules:
1456
+ pipeline_schedules_by_pipeline[schedule.pipeline_uuid].append(schedule)
1424
1457
 
1425
1458
  # Iterate through pipeline schedules by pipeline to handle pipeline run limits for
1426
1459
  # each pipeline.
@@ -1546,7 +1579,13 @@ def schedule_all():
1546
1579
  )
1547
1580
 
1548
1581
  for r in quota_filtered_runs:
1549
- PipelineScheduler(r).start()
1582
+ try:
1583
+ PipelineScheduler(r).start()
1584
+ except Exception:
1585
+ logger.exception(f'Failed to start {r}')
1586
+ traceback.print_exc()
1587
+ r.update(status=PipelineRun.PipelineRunStatus.FAILED)
1588
+ continue
1550
1589
 
1551
1590
  # If on_pipeline_run_limit_reached is set as SKIP, cancel the pipeline runs that
1552
1591
  # were not scheduled due to pipeline run limits.
@@ -116,7 +116,15 @@ class ProcessQueue(Queue):
116
116
  if job_client_id != self.client_id and self.redis_client.get(job_client_id):
117
117
  return True
118
118
  job = self.job_dict.get(job_id)
119
- return job is not None and (job == JobStatus.QUEUED or isinstance(job, int))
119
+ return (
120
+ job is not None and
121
+ (
122
+ # In queue
123
+ (job == JobStatus.QUEUED and not self.queue.empty()) or
124
+ # Running
125
+ isinstance(job, int)
126
+ )
127
+ )
120
128
 
121
129
  def kill_job(self, job_id: str):
122
130
  """
@@ -22,18 +22,21 @@ def trigger_pipeline(
22
22
  error_on_failure: bool = False,
23
23
  poll_interval: float = DEFAULT_POLL_INTERVAL,
24
24
  poll_timeout: Optional[float] = None,
25
+ schedule_name: str = None,
25
26
  verbose: bool = True,
27
+ _should_schedule: bool = False, # For internal use only (e.g. running hooks from notebook).
26
28
  ) -> PipelineRun:
27
29
  if variables is None:
28
30
  variables = {}
29
31
  pipeline = Pipeline.get(pipeline_uuid)
30
32
 
31
- pipeline_schedule = __fetch_or_create_pipeline_schedule(pipeline)
33
+ pipeline_schedule = __fetch_or_create_pipeline_schedule(pipeline, schedule_name=schedule_name)
32
34
 
33
35
  pipeline_run = create_and_start_pipeline_run(
34
36
  pipeline,
35
37
  pipeline_schedule,
36
38
  dict(variables=variables),
39
+ should_schedule=_should_schedule,
37
40
  )
38
41
 
39
42
  if check_status:
@@ -48,9 +51,14 @@ def trigger_pipeline(
48
51
  return pipeline_run
49
52
 
50
53
 
51
- def __fetch_or_create_pipeline_schedule(pipeline: Pipeline) -> PipelineSchedule:
54
+ def __fetch_or_create_pipeline_schedule(
55
+ pipeline: Pipeline,
56
+ schedule_name: str = None,
57
+ ) -> PipelineSchedule:
58
+ if schedule_name is None:
59
+ schedule_name = TRIGGER_NAME_FOR_TRIGGER_CREATED_FROM_CODE
60
+
52
61
  pipeline_uuid = pipeline.uuid
53
- schedule_name = TRIGGER_NAME_FOR_TRIGGER_CREATED_FROM_CODE
54
62
  schedule_type = ScheduleType.API
55
63
 
56
64
  pipeline_schedule = PipelineSchedule.repo_query.filter(
@@ -1,3 +1,4 @@
1
1
  DEFAULT_POLL_INTERVAL = 60
2
2
  TRIGGER_NAME_FOR_GLOBAL_DATA_PRODUCT = 'GLOBAL_DATA_PRODUCT_TRIGGER'
3
+ TRIGGER_NAME_FOR_GLOBAL_HOOK = 'GLOBAL_HOOK_TRIGGER'
3
4
  TRIGGER_NAME_FOR_TRIGGER_CREATED_FROM_CODE = 'API_TRIGGER_CREATED_FROM_CODE'
@@ -3,8 +3,13 @@ from typing import Dict
3
3
  from jupyter_client import KernelClient, KernelManager
4
4
  from jupyter_client.kernelspec import NoSuchKernel
5
5
 
6
+ from mage_ai.data_preparation.models.project import Project
7
+ from mage_ai.data_preparation.models.project.constants import FeatureUUID
6
8
  from mage_ai.server.kernels import DEFAULT_KERNEL_NAME, KernelName, kernel_managers
7
9
  from mage_ai.server.logger import Logger
10
+ from mage_ai.services.spark.constants import ComputeServiceUUID
11
+ from mage_ai.services.spark.utils import get_compute_service
12
+ from mage_ai.services.ssh.aws.emr.utils import cluster_info_from_tunnel
8
13
 
9
14
  logger = Logger().new_server_logger(__name__)
10
15
 
@@ -68,10 +73,38 @@ def switch_active_kernel(
68
73
  from mage_ai.cluster_manager.aws.emr_cluster_manager import (
69
74
  emr_cluster_manager,
70
75
  )
71
- emr_cluster_manager.set_active_cluster(
72
- auto_selection=True,
73
- emr_config=emr_config,
74
- )
76
+
77
+ should_set_active = True
78
+ auto_creation = True
79
+ cluster_id = None
80
+ project = Project()
81
+
82
+ if project.is_feature_enabled(FeatureUUID.COMPUTE_MANAGEMENT):
83
+ if ComputeServiceUUID.AWS_EMR == get_compute_service(
84
+ emr_config=emr_config,
85
+ kernel_name=kernel_name,
86
+ ):
87
+ auto_creation = False
88
+ should_set_active = False
89
+
90
+ cluster_info = cluster_info_from_tunnel()
91
+
92
+ if cluster_info:
93
+ from mage_ai.services.compute.models import ComputeService
94
+
95
+ cluster_id = cluster_info.get('id') or None
96
+ compute_service = ComputeService(project=project)
97
+ cluster = compute_service.get_cluster_details(cluster_id=cluster_id)
98
+
99
+ should_set_active = cluster.has_dns_name if cluster else False
100
+
101
+ if should_set_active:
102
+ emr_cluster_manager.set_active_cluster(
103
+ auto_creation=auto_creation,
104
+ auto_selection=True,
105
+ cluster_id=cluster_id,
106
+ emr_config=emr_config,
107
+ )
75
108
  except NoSuchKernel as e:
76
109
  if kernel_name == KernelName.PYSPARK:
77
110
  raise Exception(
@@ -1,3 +1,8 @@
1
+ import os
2
+ import tempfile
3
+ import zipfile
4
+
5
+ import jwt
1
6
  from tornado import gen, iostream
2
7
 
3
8
  from mage_ai.api.utils import authenticate_client_and_token
@@ -6,7 +11,8 @@ from mage_ai.data_preparation.models.variable import VariableType
6
11
  from mage_ai.orchestration.db.models.oauth import Oauth2Application
7
12
  from mage_ai.orchestration.db.models.schedules import PipelineRun
8
13
  from mage_ai.server.api.base import BaseHandler
9
- from mage_ai.settings import REQUIRE_USER_AUTHENTICATION
14
+ from mage_ai.settings import JWT_DOWNLOAD_SECRET, REQUIRE_USER_AUTHENTICATION
15
+ from mage_ai.settings.repo import get_repo_path
10
16
 
11
17
 
12
18
  class ApiDownloadHandler(BaseHandler):
@@ -62,3 +68,72 @@ class ApiDownloadHandler(BaseHandler):
62
68
  await self.flush()
63
69
  # Sleep for a nanosecond so other handlers can run and avoid blocking
64
70
  await gen.sleep(0.000000001)
71
+
72
+
73
+ class ApiResourceDownloadHandler(BaseHandler):
74
+
75
+ def get(self, token):
76
+ try:
77
+ decoded_payload = jwt.decode(token, JWT_DOWNLOAD_SECRET, algorithms=['HS256'])
78
+
79
+ file_name = decoded_payload['file_name']
80
+ file_list = decoded_payload['file_list']
81
+ self.ignore_folder_structure = decoded_payload['ignore_folder_structure']
82
+
83
+ self.abs_repo_path = os.path.abspath(get_repo_path())
84
+
85
+ relative_file_list = list(map(self.relative_path_mapping, file_list))
86
+
87
+ try:
88
+ file_pointer = self.get_file_pointer(file_list, relative_file_list)
89
+
90
+ while True:
91
+ _buffer = file_pointer.read(4096)
92
+ if not _buffer:
93
+ break
94
+ self.write(_buffer)
95
+ except Exception as e:
96
+ self.set_status(400)
97
+ self.write(f'Error fetching file {file_name}.\n{e}')
98
+ finally:
99
+ file_pointer.close()
100
+
101
+ self.set_header('Content-Type', 'application/force-download')
102
+ self.set_header('Content-Disposition', f'attachment; filename={file_name}')
103
+ self.flush()
104
+ except jwt.exceptions.ExpiredSignatureError:
105
+ self.set_status(400)
106
+ self.write('Download token is expired.')
107
+ except (jwt.exceptions.InvalidSignatureError, jwt.exceptions.DecodeError):
108
+ self.set_status(400)
109
+ self.write('Download token is invalid.')
110
+ except ValueError as e:
111
+ self.set_status(400)
112
+ self.write(f'Attepmt at fetching file outside of project folder: {e}')
113
+
114
+ # file pointer points to either a singular file or a temporary zip
115
+ def get_file_pointer(self, file_list, relative_file_list):
116
+ if len(file_list) == 1:
117
+ return open(file_list[0])
118
+ return self.zip_files(file_list, relative_file_list)
119
+
120
+ # creates a temporary zip and returns the (open) file pointer
121
+ def zip_files(self, file_list, relative_file_list):
122
+ zip_file = tempfile.NamedTemporaryFile(suffix='.zip', mode='w+b')
123
+ with zipfile.ZipFile(zip_file, 'w') as zipf:
124
+ for path, relative in zip(file_list, relative_file_list):
125
+ zipf.write(path, relative)
126
+ zip_file.seek(0) # set cursor to start of file to prepare for content extraction
127
+ return zip_file
128
+
129
+ def relative_path_mapping(self, path):
130
+ abs_path = os.path.abspath(path)
131
+ common_ground = os.path.commonpath([self.abs_repo_path, abs_path])
132
+
133
+ # trying to access files outside of the project folder
134
+ if common_ground != self.abs_repo_path:
135
+ raise ValueError(abs_path)
136
+
137
+ return (os.path.basename(abs_path)
138
+ if self.ignore_folder_structure
139
+ else os.path.relpath(abs_path, common_ground))
@@ -12,4 +12,4 @@ DATAFRAME_OUTPUT_SAMPLE_COUNT = 10
12
12
  # Dockerfile depends on it because it runs ./scripts/install_mage.sh and uses
13
13
  # the last line to determine the version to install.
14
14
  VERSION = \
15
- '0.9.45'
15
+ '0.9.47'
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=0" name="viewport"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><link href="/favicon.ico" rel="icon"/><link rel="preload" href="/_next/static/css/d1e8e64d0b07af2f.css" as="style"/><link rel="stylesheet" href="/_next/static/css/d1e8e64d0b07af2f.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-8af2b89c5a3779fc.js" defer=""></script><script src="/_next/static/chunks/framework-7c365855dab1bf41.js" defer=""></script><script src="/_next/static/chunks/main-77fe248a6fbd12d8.js" defer=""></script><script src="/_next/static/chunks/pages/_app-1203afde83fa2d6e.js" defer=""></script><script src="/_next/static/chunks/pages/_error-e989623bffcbf724.js" defer=""></script><script src="/_next/static/icIDjCezcfhiKL87kgeSY/_buildManifest.js" defer=""></script><script src="/_next/static/icIDjCezcfhiKL87kgeSY/_ssgManifest.js" defer=""></script><style data-styled="" data-styled-version="5.3.6">html{-webkit-box-sizing:border-box;box-sizing:border-box;-ms-overflow-style:scrollbar;}/*!sc*/
1
+ <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=0" name="viewport"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><link href="/favicon.ico" rel="icon"/><link rel="preload" href="/_next/static/css/d1e8e64d0b07af2f.css" as="style"/><link rel="stylesheet" href="/_next/static/css/d1e8e64d0b07af2f.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-fea697dd168c6d0c.js" defer=""></script><script src="/_next/static/chunks/framework-22b71764bf44ede4.js" defer=""></script><script src="/_next/static/chunks/main-77fe248a6fbd12d8.js" defer=""></script><script src="/_next/static/chunks/pages/_app-78c4a077a2f279c2.js" defer=""></script><script src="/_next/static/chunks/pages/_error-e989623bffcbf724.js" defer=""></script><script src="/_next/static/N3FS4bHv0jpYeeg672uYK/_buildManifest.js" defer=""></script><script src="/_next/static/N3FS4bHv0jpYeeg672uYK/_ssgManifest.js" defer=""></script><style data-styled="" data-styled-version="5.3.6">html{-webkit-box-sizing:border-box;box-sizing:border-box;-ms-overflow-style:scrollbar;}/*!sc*/
2
2
  *,*::before,*::after{-webkit-box-sizing:inherit;box-sizing:inherit;}/*!sc*/
3
3
  data-styled.g4[id="sc-global-czSCUT1"]{content:"sc-global-czSCUT1,"}/*!sc*/
4
4
  .kOVcuR .Toastify__toast-container{margin-top:24px;padding:0 !important;width:500px !important;}/*!sc*/
@@ -20,4 +20,4 @@ data-styled.g5[id="ToastWrapper-sc-1a33ph1-0"]{content:"kOVcuR,"}/*!sc*/
20
20
  .next-error-h1 {
21
21
  border-right: 1px solid rgba(255, 255, 255, .3);
22
22
  }
23
- }</style><h1 class="next-error-h1" style="display:inline-block;margin:0;margin-right:20px;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404<!-- --></h1><div style="display:inline-block;text-align:left;line-height:49px;height:49px;vertical-align:middle"><h2 style="font-size:14px;font-weight:normal;line-height:49px;margin:0;padding:0">This page could not be found<!-- -->.<!-- --></h2></div></div></div><div></div><div></div><div></div><div class="ToastWrapper-sc-1a33ph1-0 kOVcuR"><div class="Toastify"></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404},"currentTheme":{"accent":{"alert":"#F6540B","blue":"#4877FF","blueLight":"rgba(72, 119, 255, 0.5)","contentDefaultTransparent":"rgba(174, 174, 174, 0.5)","cyan":"#65E3FF","cyanLight":"rgba(101, 227, 255, 0.3)","cyanTransparent":"rgba(101, 227, 255, 0.12)","dbt":"#fc6949","dbtLight":"rgba(252, 105, 73, 0.5)","info":"#00ABFF","infoTransparent":"rgba(0, 171, 255, 0.5)","negative":"#FF1E59","negativeTransparent":"rgba(255, 30, 89, 0.3)","pink":"#FF4FF8","pinkLight":"rgb(255, 79, 248, 0.5)","positive":"#00A81A","primaryTransparent":"rgba(155, 108, 167, 0.5)","purple":"#7D55EC","purpleLight":"rgba(125, 85, 236, 0.5)","rose":"#D1A2AB","roseLight":"rgba(209, 162, 171, 0.5)","sky":"#6AA1E0","skyLight":"rgba(106, 161, 224, 0.05)","teal":"#00B4CC","tealLight":"rgba(0, 180, 204, 0.5)","warning":"#DD9900","warningTransparent":"rgba(221, 153, 0, 0.5)","yellow":"#FFCC19","yellowLight":"rgba(255, 204, 25, 0.5)"},"background":{"chartBlock":"#2E3036","codeArea":"#1E1F24","codeTextarea":"#000000","content":"#1B1C20","danger":"#FFD0DB","dark":"#B1B8C3","dashboard":"#18181C","header":"#1B1B1B","menu":"#0F4CFF","muted":"#F9FAFC","navigation":"#EDEDED","output":"#2E3036","page":"#1E1F24","panel":"#232429","popup":"#27292E","row":"#2C2C2C","row2":"#51535C","scrollbarThumb":"rgba(100, 100, 100, 0.5)","scrollbarThumbHover":"rgba(255, 255, 255, 0.3)","scrollbarTrack":"#2E3036","success":"#8ADE00","successLight":"rgb(138, 222, 0, 0.3)","table":"#292A2F","tag":"#3A4550"},"borders":{"button":"#454850","contrast":"#FFFFFF","danger":"#FF144D","dark":"#000000","darkLight":"#2E3036","info":"#FFCC19","light":"#2F3034","medium":"#1C1C1C","medium2":"#141414","success":"#2FCB52"},"brand":{"earth100":"#C6EEDB","earth200":"#9DDFBF","earth300":"#6BBF96","earth400":"#37A46F","earth400Transparent":"rgba(55, 164, 111, 0.4)","earth500":"#00954C","energy100":"#FFF4BA","energy200":"#FFED92","energy300":"#FFE662","energy400":"#FFDA19","energy400Transparent":"rgba(255, 218, 25, 0.04)","energy500":"#F6C000","fire100":"#FFD7E0","fire200":"#FFA3B9","fire300":"#FF547D","fire400":"#FF144D","fire400Transparent":"rgba(255, 20, 77, 0.4)","fire500":"#EB0032","stone100":"#F3E6D7","stone200":"#E3D4C2","stone400":"#BFA78B","stone500":"#AF8859","water100":"#BDCEFF","water200":"#81A1FF","water300":"#517DFF","water400":"#2A60FE","water400Transparent":"rgba(42, 96, 254, 0.4)","water500":"#0F4CFF","wind100":"#EEEAFF","wind200":"#CCC1F4","wind300":"#A698DD","wind400":"#6B50D7","wind400SuperTransparent":"rgba(107, 80, 215, 0.12)","wind400Transparent":"rgba(107, 80, 215, 0.4)","wind500":"#4E32BC"},"chart":{"backgroundPrimary":"#7D55EC","backgroundSecondary":"#FF144D","backgroundTertiary":"#86E2FF","button1":"#4877FF","button2":"#FFCC19","button3":"#8ADE00","button4":"#FF4FF8","button5":"#B98D95","lines":"#9B6CA7","primary":"#6B50D7","secondary":"#FF144D","tertiary":"#2A60FE"},"content":{"active":"#FFFFFF","default":"#AEAEAE","disabled":"rgba(255, 255, 255, 0.3)","inverted":"#2C2C2C","muted":"#787A85"},"elevation":{"visualizationAccent":"#996CFF","visualizationAccentAlt":"#C1ACF7"},"feature":{"active":"rgba(250, 248, 254, 0.14)","disabled":"rgba(201, 206, 218, 0.12)"},"icons":{"neutral":"#787878"},"interactive":{"activeBorder":"#060606","checked":"#060606","dangerBorder":"#FF144D","defaultBackground":"#36383F","defaultBorder":"#ffffff1a","disabledBorder":"#B1B8C3","focusBackground":"#B1B8C3","focusBorder":"#86E2FF","hoverBackground":"#4E4E4E","hoverBorder":"#B9BFCA","hoverOverlay":"rgba(255, 255, 255, 0.1)","linkPrimary":"#1752FF","linkPrimaryHover":"#4877FF","linkPrimaryLight":"#5982ff","linkSecondary":"#6B50D7","linkSecondaryDisabled":"#C4B9EF","linkText":"#6AA1E0","linkTextLight":"#9ECBFF","purple":"#885EFF","rowHoverBackground":"rgba(0, 0, 0, 0.1)","transparent":"rgba(255, 255, 255, 0)"},"loader":{"color":"#EB0032","colorInverted":"#8ADE00"},"logo":{"color":"#FFFFFF"},"monotone":{"black":"#060606","blackTransparent":"rgba(0, 0, 0, 0.6)","gray":"#B1B8C3","grey100":"#F2F2F2","grey200":"#D5D7DC","grey300":"#B4B8C0","grey400":"#70747C","grey500":"#51535C","purple":"#6B50D7","white":"#FFFFFF","whiteTransparent":"rgba(255, 255, 255, 0.6)"},"neutral":{"n100":"#E7E8EA","n200":"#D8DADE","n300":"#CBCCD0","n400":"#BCBEC4","n500":"#AEB0B6"},"progress":{"negative":"#FF144D","positive":"#6B50D7"},"shadow":{"base":"12px 40px 120px rgba(0, 0, 0, 0.3)","frame":"0px 10px 40px rgba(0, 0, 0, 0.26)","menu":"4px 10px 20px rgba(6, 6, 6, 0.12)","popup":"10px 20px 40px rgba(0, 0, 0, 0.2)","small":"0px, 4px, rgba(0, 0, 0, 0.25)","window":"0px 10px 60px rgba(0, 0, 0, 0.7)"},"status":{"negative":"#FF144D","positive":"#24B400"},"text":{"fileBrowser":"#787A85"}}},"page":"/_error","query":{},"buildId":"icIDjCezcfhiKL87kgeSY","nextExport":true,"isFallback":false,"gip":true,"appGip":true,"scriptLoader":[]}</script></body></html>
23
+ }</style><h1 class="next-error-h1" style="display:inline-block;margin:0;margin-right:20px;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404<!-- --></h1><div style="display:inline-block;text-align:left;line-height:49px;height:49px;vertical-align:middle"><h2 style="font-size:14px;font-weight:normal;line-height:49px;margin:0;padding:0">This page could not be found<!-- -->.<!-- --></h2></div></div></div><div></div><div></div><div></div><div class="ToastWrapper-sc-1a33ph1-0 kOVcuR"><div class="Toastify"></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404},"currentTheme":{"accent":{"alert":"#F6540B","blue":"#4877FF","blueLight":"rgba(72, 119, 255, 0.5)","contentDefaultTransparent":"rgba(174, 174, 174, 0.5)","cyan":"#65E3FF","cyanLight":"rgba(101, 227, 255, 0.3)","cyanTransparent":"rgba(101, 227, 255, 0.12)","dbt":"#fc6949","dbtLight":"rgba(252, 105, 73, 0.5)","info":"#00ABFF","infoTransparent":"rgba(0, 171, 255, 0.5)","negative":"#FF1E59","negativeTransparent":"rgba(255, 30, 89, 0.3)","pink":"#FF4FF8","pinkLight":"rgb(255, 79, 248, 0.5)","positive":"#00A81A","primaryTransparent":"rgba(155, 108, 167, 0.5)","purple":"#7D55EC","purpleLight":"rgba(125, 85, 236, 0.5)","rose":"#D1A2AB","roseLight":"rgba(209, 162, 171, 0.5)","sky":"#6AA1E0","skyLight":"rgba(106, 161, 224, 0.05)","teal":"#00B4CC","tealLight":"rgba(0, 180, 204, 0.5)","warning":"#DD9900","warningTransparent":"rgba(221, 153, 0, 0.5)","yellow":"#FFCC19","yellowLight":"rgba(255, 204, 25, 0.5)"},"background":{"chartBlock":"#2E3036","codeArea":"#1E1F24","codeTextarea":"#000000","content":"#1B1C20","danger":"#FFD0DB","dark":"#B1B8C3","dashboard":"#18181C","header":"#1B1B1B","menu":"#0F4CFF","muted":"#F9FAFC","navigation":"#EDEDED","output":"#2E3036","page":"#1E1F24","panel":"#232429","popup":"#27292E","row":"#2C2C2C","row2":"#51535C","scrollbarThumb":"rgba(100, 100, 100, 0.5)","scrollbarThumbHover":"rgba(255, 255, 255, 0.3)","scrollbarTrack":"#2E3036","success":"#8ADE00","successLight":"rgb(138, 222, 0, 0.3)","table":"#292A2F","tag":"#3A4550"},"borders":{"button":"#454850","contrast":"#FFFFFF","danger":"#FF144D","dark":"#000000","darkLight":"#2E3036","info":"#FFCC19","light":"#2F3034","medium":"#1C1C1C","medium2":"#141414","success":"#2FCB52"},"brand":{"earth100":"#C6EEDB","earth200":"#9DDFBF","earth300":"#6BBF96","earth400":"#37A46F","earth400Transparent":"rgba(55, 164, 111, 0.4)","earth500":"#00954C","energy100":"#FFF4BA","energy200":"#FFED92","energy300":"#FFE662","energy400":"#FFDA19","energy400Transparent":"rgba(255, 218, 25, 0.04)","energy500":"#F6C000","fire100":"#FFD7E0","fire200":"#FFA3B9","fire300":"#FF547D","fire400":"#FF144D","fire400Transparent":"rgba(255, 20, 77, 0.4)","fire500":"#EB0032","stone100":"#F3E6D7","stone200":"#E3D4C2","stone400":"#BFA78B","stone500":"#AF8859","water100":"#BDCEFF","water200":"#81A1FF","water300":"#517DFF","water400":"#2A60FE","water400Transparent":"rgba(42, 96, 254, 0.4)","water500":"#0F4CFF","wind100":"#EEEAFF","wind200":"#CCC1F4","wind300":"#A698DD","wind400":"#6B50D7","wind400SuperTransparent":"rgba(107, 80, 215, 0.12)","wind400Transparent":"rgba(107, 80, 215, 0.4)","wind500":"#4E32BC"},"chart":{"backgroundPrimary":"#7D55EC","backgroundSecondary":"#FF144D","backgroundTertiary":"#86E2FF","button1":"#4877FF","button2":"#FFCC19","button3":"#8ADE00","button4":"#FF4FF8","button5":"#B98D95","lines":"#9B6CA7","primary":"#6B50D7","secondary":"#FF144D","tertiary":"#2A60FE"},"content":{"active":"#FFFFFF","default":"#AEAEAE","disabled":"rgba(255, 255, 255, 0.3)","inverted":"#2C2C2C","muted":"#787A85"},"elevation":{"visualizationAccent":"#996CFF","visualizationAccentAlt":"#C1ACF7"},"feature":{"active":"rgba(250, 248, 254, 0.14)","disabled":"rgba(201, 206, 218, 0.12)"},"icons":{"neutral":"#787878"},"interactive":{"activeBorder":"#060606","checked":"#060606","dangerBorder":"#FF144D","defaultBackground":"#36383F","defaultBorder":"#ffffff1a","disabledBorder":"#B1B8C3","focusBackground":"#B1B8C3","focusBorder":"#86E2FF","hoverBackground":"#4E4E4E","hoverBorder":"#B9BFCA","hoverOverlay":"rgba(255, 255, 255, 0.1)","linkPrimary":"#1752FF","linkPrimaryHover":"#4877FF","linkPrimaryLight":"#5982ff","linkSecondary":"#6B50D7","linkSecondaryDisabled":"#C4B9EF","linkText":"#6AA1E0","linkTextLight":"#9ECBFF","purple":"#885EFF","rowHoverBackground":"rgba(0, 0, 0, 0.1)","transparent":"rgba(255, 255, 255, 0)"},"loader":{"color":"#EB0032","colorInverted":"#8ADE00"},"logo":{"color":"#FFFFFF"},"monotone":{"black":"#060606","blackTransparent":"rgba(0, 0, 0, 0.6)","gray":"#B1B8C3","grey100":"#F2F2F2","grey200":"#D5D7DC","grey300":"#B4B8C0","grey400":"#70747C","grey500":"#51535C","purple":"#6B50D7","white":"#FFFFFF","whiteTransparent":"rgba(255, 255, 255, 0.6)"},"neutral":{"n100":"#E7E8EA","n200":"#D8DADE","n300":"#CBCCD0","n400":"#BCBEC4","n500":"#AEB0B6"},"progress":{"negative":"#FF144D","positive":"#6B50D7"},"shadow":{"base":"12px 40px 120px rgba(0, 0, 0, 0.3)","frame":"0px 10px 40px rgba(0, 0, 0, 0.26)","menu":"4px 10px 20px rgba(6, 6, 6, 0.12)","popup":"10px 20px 40px rgba(0, 0, 0, 0.2)","small":"0px, 4px, rgba(0, 0, 0, 0.25)","window":"0px 10px 60px rgba(0, 0, 0, 0.7)"},"status":{"negative":"#FF144D","positive":"#24B400"},"text":{"fileBrowser":"#787A85"}}},"page":"/_error","query":{},"buildId":"N3FS4bHv0jpYeeg672uYK","nextExport":true,"isFallback":false,"gip":true,"appGip":true,"scriptLoader":[]}</script></body></html>
@@ -0,0 +1 @@
1
+ self.__BUILD_MANIFEST=function(s,e,i,a,c,t,n,p,l,u,g,k,r,f,o,b,d,h,j,m,w,_,v,y,I,B,F,A,D,E,L,M,N,S,T,U,C,x,P,q,z,G,H,J,K,O,Q,R,V,W,X,Y,Z){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/pages/index-a22f976b85beef2d.js"],"/_error":["static/chunks/pages/_error-e989623bffcbf724.js"],"/block-layout":[s,F,e,r,o,h,m,_,A,N,i,a,n,b,v,S,C,"static/chunks/pages/block-layout-a24cb24b6f08bbc9.js"],"/compute":[s,e,c,g,i,a,t,n,p,l,k,f,y,"static/chunks/pages/compute-419775ca1293b354.js"],"/files":[s,e,c,r,D,i,a,t,n,p,l,b,E,x,H,"static/chunks/pages/files-b37d221eb5ddc248.js"],"/global-data-products":[s,e,c,i,a,t,n,p,l,I,T,J,"static/chunks/pages/global-data-products-c3b79ef31007f95b.js"],"/global-data-products/[...slug]":[s,e,c,i,a,t,n,p,l,I,T,J,"static/chunks/pages/global-data-products/[...slug]-cfd68e760ae00958.js"],"/global-hooks":[s,e,c,i,a,t,n,p,l,K,"static/chunks/pages/global-hooks-51d366993f6dd449.js"],"/global-hooks/[...slug]":[s,e,c,i,a,t,n,p,K,"static/chunks/pages/global-hooks/[...slug]-7adc543fc490367a.js"],"/manage":[s,e,c,r,D,i,a,t,n,p,l,b,E,"static/chunks/pages/manage-d8a38b5d1f50e798.js"],"/manage/files":[s,e,c,r,D,i,a,t,n,p,l,b,E,x,H,"static/chunks/pages/manage/files-fe6e73463a20d67c.js"],"/manage/settings":[s,e,c,r,i,a,t,n,b,x,"static/chunks/pages/manage/settings-60845f0b59142f32.js"],"/manage/users":[s,e,c,i,a,t,n,p,l,"static/chunks/pages/manage/users-28a930b148d99766.js"],"/manage/users/new":[s,e,c,i,a,t,n,P,"static/chunks/pages/manage/users/new-abd8571907664fdf.js"],"/manage/users/[user]":[s,e,c,i,a,t,n,p,l,P,"static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js"],"/oauth":[s,e,c,i,a,t,"static/chunks/pages/oauth-8bb62c4f6a511c43.js"],"/overview":[s,F,e,c,g,r,d,o,h,m,_,L,A,N,i,a,t,n,p,l,k,f,b,w,v,y,M,S,C,O,"static/chunks/pages/overview-f0c40645f385f23f.js"],"/pipeline-runs":[s,e,c,i,a,t,n,p,l,I,q,"static/chunks/pages/pipeline-runs-b35d37bfba8fbccc.js"],"/pipelines":[s,e,c,g,r,d,o,h,L,i,a,t,n,p,l,k,f,b,w,v,y,M,q,O,"static/chunks/pages/pipelines-3737f2b0afc2ede3.js"],"/pipelines/[pipeline]":["static/chunks/pages/pipelines/[pipeline]-02c843b9c8418bb5.js"],"/pipelines/[pipeline]/backfills":[s,e,c,i,a,t,n,p,l,u,"static/chunks/pages/pipelines/[pipeline]/backfills-51b1311dff2a974e.js"],"/pipelines/[pipeline]/backfills/[...slug]":[s,e,c,g,d,B,U,i,a,t,n,p,l,u,k,f,I,z,"static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-9adc2974aada27ba.js"],"/pipelines/[pipeline]/dashboard":[s,F,e,c,r,o,h,m,_,A,N,i,a,t,n,u,b,v,S,C,"static/chunks/pages/pipelines/[pipeline]/dashboard-571c0962333b92f0.js"],"/pipelines/[pipeline]/edit":[s,F,e,c,g,r,d,o,h,m,_,B,L,A,D,N,"static/chunks/6563-5b3b97c9088baf69.js",i,a,t,n,p,l,f,w,v,y,M,E,S,Q,"static/chunks/pages/pipelines/[pipeline]/edit-2333e524d34b474a.js"],"/pipelines/[pipeline]/logs":[s,e,c,g,h,U,i,a,t,n,p,l,u,k,"static/chunks/pages/pipelines/[pipeline]/logs-ef680455ae54ccbe.js"],"/pipelines/[pipeline]/monitors":[s,e,c,m,_,i,a,t,n,u,"static/chunks/pages/pipelines/[pipeline]/monitors-6d1afeb4a84f50f7.js"],"/pipelines/[pipeline]/monitors/block-runs":[s,e,c,m,_,i,a,t,n,u,"static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-ddddcddd2f74b4f6.js"],"/pipelines/[pipeline]/monitors/block-runtime":[s,F,e,c,m,_,"static/chunks/6285-648f9a732e100b2f.js",i,a,t,n,u,"static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js"],"/pipelines/[pipeline]/runs":[s,e,c,g,d,B,i,a,t,n,p,l,u,k,f,I,R,"static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js"],"/pipelines/[pipeline]/runs/[run]":[s,e,c,g,d,h,m,B,A,i,a,t,n,p,l,u,k,f,R,"static/chunks/pages/pipelines/[pipeline]/runs/[run]-1ff9bb8e22ca1e75.js"],"/pipelines/[pipeline]/settings":[s,e,c,i,a,t,n,u,G,"static/chunks/pages/pipelines/[pipeline]/settings-11363aa58d51f4e1.js"],"/pipelines/[pipeline]/syncs":[s,e,c,i,a,t,n,p,l,u,"static/chunks/pages/pipelines/[pipeline]/syncs-b75bf17498e87354.js"],"/pipelines/[pipeline]/triggers":[s,e,c,g,d,o,B,U,V,i,a,t,n,p,l,u,k,f,w,T,q,G,z,W,"static/chunks/pages/pipelines/[pipeline]/triggers-bbea9a088657404a.js"],"/pipelines/[pipeline]/triggers/[...slug]":[s,e,c,g,d,o,B,U,V,i,a,t,n,p,l,u,k,f,w,I,G,z,W,"static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-779c3ef0676a12ac.js"],"/settings":["static/chunks/pages/settings-0f0121db7f5ff93d.js"],"/settings/account/profile":[s,e,c,i,a,t,n,j,P,"static/chunks/pages/settings/account/profile-3c8f062913c66f3e.js"],"/settings/workspace/permissions":[s,e,c,i,a,t,n,p,l,j,X,"static/chunks/pages/settings/workspace/permissions-37b78a436eeab258.js"],"/settings/workspace/permissions/[...slug]":[s,e,c,i,a,t,n,p,l,j,X,"static/chunks/pages/settings/workspace/permissions/[...slug]-b78b1be5b9ed84b9.js"],"/settings/workspace/preferences":[s,e,c,i,a,t,n,j,"static/chunks/pages/settings/workspace/preferences-c1f4ed17d501ccca.js"],"/settings/workspace/roles":[s,e,c,i,a,t,n,p,l,j,Y,"static/chunks/pages/settings/workspace/roles-f55c77e4f46c8d33.js"],"/settings/workspace/roles/[...slug]":[s,e,c,i,a,t,n,p,l,j,Y,"static/chunks/pages/settings/workspace/roles/[...slug]-db05a80d18c168e5.js"],"/settings/workspace/sync-data":[s,e,c,i,a,t,n,j,"static/chunks/pages/settings/workspace/sync-data-2a1f8737561fdd94.js"],"/settings/workspace/users":[s,e,c,i,a,t,n,p,l,j,Z,"static/chunks/pages/settings/workspace/users-20f0a050a42a015d.js"],"/settings/workspace/users/[...slug]":[s,e,c,i,a,t,n,p,l,j,Z,"static/chunks/pages/settings/workspace/users/[...slug]-e3bf6e5d8bb250c4.js"],"/sign-in":[s,e,c,i,a,t,"static/chunks/pages/sign-in-99e2748e3c1d57a3.js"],"/templates":[s,e,c,g,r,d,o,h,L,i,a,t,n,p,l,k,f,b,w,v,y,M,"static/chunks/pages/templates-1bfaa1c50e844813.js"],"/templates/[...slug]":[s,e,c,g,r,d,o,h,L,i,a,t,n,p,l,k,f,b,w,v,y,M,"static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js"],"/terminal":[s,e,c,i,a,t,n,"static/chunks/pages/terminal-ed121e305169cf1c.js"],"/test":[s,e,o,i,p,w,Q,"static/chunks/pages/test-9ae68758102cc843.js"],"/triggers":[s,e,c,i,a,t,n,p,l,T,"static/chunks/pages/triggers-8bdd858240d5dbf6.js"],"/version-control":[s,e,c,D,"static/chunks/6965-c613d1834c8ed92d.js",i,a,t,n,p,l,k,E,"static/chunks/pages/version-control-dd4fb405695f74bf.js"],sortedPages:["/","/_app","/_error","/block-layout","/compute","/files","/global-data-products","/global-data-products/[...slug]","/global-hooks","/global-hooks/[...slug]","/manage","/manage/files","/manage/settings","/manage/users","/manage/users/new","/manage/users/[user]","/oauth","/overview","/pipeline-runs","/pipelines","/pipelines/[pipeline]","/pipelines/[pipeline]/backfills","/pipelines/[pipeline]/backfills/[...slug]","/pipelines/[pipeline]/dashboard","/pipelines/[pipeline]/edit","/pipelines/[pipeline]/logs","/pipelines/[pipeline]/monitors","/pipelines/[pipeline]/monitors/block-runs","/pipelines/[pipeline]/monitors/block-runtime","/pipelines/[pipeline]/runs","/pipelines/[pipeline]/runs/[run]","/pipelines/[pipeline]/settings","/pipelines/[pipeline]/syncs","/pipelines/[pipeline]/triggers","/pipelines/[pipeline]/triggers/[...slug]","/settings","/settings/account/profile","/settings/workspace/permissions","/settings/workspace/permissions/[...slug]","/settings/workspace/preferences","/settings/workspace/roles","/settings/workspace/roles/[...slug]","/settings/workspace/sync-data","/settings/workspace/users","/settings/workspace/users/[...slug]","/sign-in","/templates","/templates/[...slug]","/terminal","/test","/triggers","/version-control"]}}("static/chunks/2852872c-15b31a7081e6a868.js","static/chunks/1154-2f262f7eb38ebaa1.js","static/chunks/4267-cb102e060a43d9bd.js","static/chunks/600-705fe234320ec5de.js","static/chunks/844-1e171f361e63b36d.js","static/chunks/8487-8e1c09546dff4dbf.js","static/chunks/8264-0d582a6ca33c3dfa.js","static/chunks/7858-d9df72e95e438284.js","static/chunks/5499-76cf8f023c6b0985.js","static/chunks/5457-949640f4037bf12f.js","static/chunks/5820-28adeabb5cda2b96.js","static/chunks/4366-3e52497942acbafe.js","static/chunks/6639-74eefed142e14ea6.js","static/chunks/722-900f786d24f91b2e.js","static/chunks/341-ef0f7b98b7f69802.js","static/chunks/5810-e26a0768db1cfdba.js","static/chunks/1124-09b283a2f26cc576.js","static/chunks/1751-5adf859690505d7b.js","static/chunks/8432-f191e39f9b5893f2.js","static/chunks/5896-7b8e36634d7d94eb.js","static/chunks/1769-4f94e148a0753037.js","static/chunks/2714-68fef54789d7eaeb.js","static/chunks/1550-410bc576795e0148.js","static/chunks/90-a7308bae028d7001.js","static/chunks/3943-c9fb980f03df6450.js","static/chunks/9161-837b653aa849a76f.js","static/chunks/29107295-989a0767a635d9d5.js","static/chunks/2631-b9f9bea3f1cf906d.js","static/chunks/7011-81dd8269c4806d26.js","static/chunks/553-7f7919e14392ca67.js","static/chunks/1821-953efd0da290d25f.js","static/chunks/9264-cc44b07f248707b0.js","static/chunks/4783-422429203610c318.js","static/chunks/976-0a8c2c4d7acd957b.js","static/chunks/9624-334e7db5c84cb4ea.js","static/chunks/4495-4f0340aa82e0c623.js","static/chunks/9440-c51bf1e8f271cb25.js","static/chunks/9618-4eb49cdbd1ba11d7.js","static/chunks/6043-728790621ca9014c.js","static/chunks/5544-f43ece1ec93b6e0c.js","static/chunks/845-9a73c65fe3fdc328.js","static/chunks/6798-b904395b0c18647b.js","static/chunks/5638-a65610405a70961c.js","static/chunks/1845-5ce774d5ab81ed57.js","static/chunks/3437-b4d6a037cf5781f8.js","static/chunks/1952-57858e7445d24413.js","static/chunks/1749-bf512b4dabbab7fa.js","static/chunks/3419-715ca383fa15a5ef.js","static/chunks/9302-913007e2f801ad65.js","static/chunks/2717-92cdffd87b6f6e05.js","static/chunks/8146-27f0e31f309897a5.js","static/chunks/7022-e76cae3ba5ee5312.js","static/chunks/7361-6c5c9063b9f91700.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();