mage-ai 0.9.46__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 (309) hide show
  1. mage_ai/api/operations/base.py +27 -5
  2. mage_ai/api/policies/GlobalHookPolicy.py +1 -1
  3. mage_ai/api/policies/IntegrationSourcePolicy.py +62 -0
  4. mage_ai/api/policies/OauthPolicy.py +6 -6
  5. mage_ai/api/presenters/GlobalHookPresenter.py +1 -1
  6. mage_ai/api/presenters/IntegrationSourcePresenter.py +9 -2
  7. mage_ai/api/presenters/PipelinePresenter.py +2 -0
  8. mage_ai/api/presenters/PipelineRunPresenter.py +8 -3
  9. mage_ai/api/presenters/PipelineSchedulePresenter.py +22 -1
  10. mage_ai/api/resources/BlockResource.py +5 -0
  11. mage_ai/api/resources/DataProviderResource.py +2 -0
  12. mage_ai/api/resources/IntegrationSourceResource.py +149 -2
  13. mage_ai/data_integrations/sources/constants.py +5 -0
  14. mage_ai/data_integrations/utils/scheduler.py +57 -2
  15. mage_ai/data_preparation/executors/block_executor.py +9 -1
  16. mage_ai/data_preparation/models/block/__init__.py +25 -12
  17. mage_ai/data_preparation/models/block/data_integration/constants.py +3 -0
  18. mage_ai/data_preparation/models/block/data_integration/utils.py +196 -37
  19. mage_ai/data_preparation/models/block/sql/utils/shared.py +18 -1
  20. mage_ai/data_preparation/models/block/utils.py +28 -13
  21. mage_ai/data_preparation/models/global_hooks/constants.py +50 -1
  22. mage_ai/data_preparation/models/global_hooks/models.py +148 -84
  23. mage_ai/data_preparation/models/global_hooks/predicates.py +316 -0
  24. mage_ai/data_preparation/models/pipeline.py +2 -0
  25. mage_ai/data_preparation/models/pipelines/integration_pipeline.py +0 -1
  26. mage_ai/data_preparation/preferences.py +29 -18
  27. mage_ai/data_preparation/repo_manager.py +12 -2
  28. mage_ai/data_preparation/sync/__init__.py +2 -0
  29. mage_ai/data_preparation/templates/constants.py +14 -0
  30. mage_ai/data_preparation/templates/data_exporters/chroma.py +24 -0
  31. mage_ai/data_preparation/templates/data_exporters/streaming/rabbitmq.yaml +7 -0
  32. mage_ai/data_preparation/templates/data_loaders/chroma.py +27 -0
  33. mage_ai/data_preparation/templates/repo/io_config.yaml +3 -0
  34. mage_ai/io/base.py +1 -0
  35. mage_ai/io/chroma.py +153 -0
  36. mage_ai/io/config.py +8 -0
  37. mage_ai/orchestration/db/models/schedules.py +98 -34
  38. mage_ai/orchestration/pipeline_scheduler.py +58 -19
  39. mage_ai/server/constants.py +1 -1
  40. mage_ai/server/frontend_dist/404.html +2 -2
  41. mage_ai/server/frontend_dist/_next/static/N3FS4bHv0jpYeeg672uYK/_buildManifest.js +1 -0
  42. mage_ai/server/frontend_dist/_next/static/chunks/{1749-9a6276b2918fdae1.js → 1749-bf512b4dabbab7fa.js} +1 -1
  43. mage_ai/server/frontend_dist/_next/static/chunks/{1952-ac7722e8b1ab88fe.js → 1952-57858e7445d24413.js} +1 -1
  44. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/2714-1e79e9f2e998b544.js → frontend_dist/_next/static/chunks/2714-68fef54789d7eaeb.js} +1 -1
  45. mage_ai/server/frontend_dist/_next/static/chunks/2717-92cdffd87b6f6e05.js +1 -0
  46. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3419-f8d518d024e7b5c8.js → frontend_dist/_next/static/chunks/3419-715ca383fa15a5ef.js} +1 -1
  47. mage_ai/server/frontend_dist/_next/static/chunks/3437-b4d6a037cf5781f8.js +1 -0
  48. mage_ai/server/frontend_dist/_next/static/chunks/3943-c9fb980f03df6450.js +1 -0
  49. mage_ai/server/frontend_dist/_next/static/chunks/4267-cb102e060a43d9bd.js +1 -0
  50. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/4366-93e09e5a4a7e182c.js → frontend_dist/_next/static/chunks/4366-3e52497942acbafe.js} +1 -1
  51. mage_ai/server/frontend_dist/_next/static/chunks/{4783-1a21d9be47574bba.js → 4783-422429203610c318.js} +1 -1
  52. mage_ai/server/frontend_dist/_next/static/chunks/5810-e26a0768db1cfdba.js +1 -0
  53. mage_ai/server/frontend_dist/_next/static/chunks/{5896-14e5a23b1c6a0769.js → 5896-7b8e36634d7d94eb.js} +1 -1
  54. mage_ai/server/frontend_dist/_next/static/chunks/{6285-e9b45335bfb9ccaf.js → 6285-648f9a732e100b2f.js} +1 -1
  55. mage_ai/server/frontend_dist/_next/static/chunks/6798-b904395b0c18647b.js +1 -0
  56. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/7022-070ec0144a4d029c.js → frontend_dist/_next/static/chunks/7022-e76cae3ba5ee5312.js} +1 -1
  57. mage_ai/server/frontend_dist/_next/static/chunks/722-900f786d24f91b2e.js +1 -0
  58. mage_ai/server/frontend_dist/_next/static/chunks/{7361-694e1e4fb9c97d68.js → 7361-6c5c9063b9f91700.js} +1 -1
  59. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/8146-92e7ccfed169ee9c.js → frontend_dist/_next/static/chunks/8146-27f0e31f309897a5.js} +1 -1
  60. mage_ai/server/frontend_dist/_next/static/chunks/845-9a73c65fe3fdc328.js +1 -0
  61. mage_ai/server/frontend_dist/_next/static/chunks/8487-8e1c09546dff4dbf.js +1 -0
  62. mage_ai/server/frontend_dist/_next/static/chunks/9264-cc44b07f248707b0.js +1 -0
  63. mage_ai/server/frontend_dist/_next/static/chunks/9618-4eb49cdbd1ba11d7.js +1 -0
  64. mage_ai/server/frontend_dist/_next/static/chunks/{976-18c98af60b76f1a7.js → 976-0a8c2c4d7acd957b.js} +1 -1
  65. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-78c4a077a2f279c2.js +1 -0
  66. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-b37d221eb5ddc248.js +1 -0
  67. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-7adc543fc490367a.js +1 -0
  68. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-51d366993f6dd449.js +1 -0
  69. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{files-449a022f2f0f2d94.js → files-fe6e73463a20d67c.js} +1 -1
  70. mage_ai/server/frontend_dist/_next/static/chunks/pages/{manage-f83deb790548693b.js → manage-d8a38b5d1f50e798.js} +1 -1
  71. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-9adc2974aada27ba.js +1 -0
  72. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-51b1311dff2a974e.js +1 -0
  73. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-2333e524d34b474a.js +1 -0
  74. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-e051057d9fe94f23.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-6d1afeb4a84f50f7.js} +1 -1
  75. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-1ff9bb8e22ca1e75.js +1 -0
  76. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-11363aa58d51f4e1.js +1 -0
  77. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-779c3ef0676a12ac.js +1 -0
  78. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-bbea9a088657404a.js +1 -0
  79. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-3737f2b0afc2ede3.js +1 -0
  80. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-3c8f062913c66f3e.js +1 -0
  81. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-c1f4ed17d501ccca.js +1 -0
  82. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-8bdd858240d5dbf6.js +1 -0
  83. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-dd4fb405695f74bf.js +1 -0
  84. mage_ai/server/frontend_dist/block-layout.html +2 -2
  85. mage_ai/server/frontend_dist/compute.html +5 -5
  86. mage_ai/server/frontend_dist/files.html +5 -5
  87. mage_ai/server/frontend_dist/global-data-products/[...slug].html +5 -5
  88. mage_ai/server/frontend_dist/global-data-products.html +5 -5
  89. mage_ai/server/frontend_dist/global-hooks/[...slug].html +5 -5
  90. mage_ai/server/frontend_dist/global-hooks.html +5 -5
  91. mage_ai/server/frontend_dist/index.html +2 -2
  92. mage_ai/server/frontend_dist/manage/files.html +5 -5
  93. mage_ai/server/frontend_dist/manage/settings.html +5 -5
  94. mage_ai/server/frontend_dist/manage/users/[user].html +5 -5
  95. mage_ai/server/frontend_dist/manage/users/new.html +5 -5
  96. mage_ai/server/frontend_dist/manage/users.html +5 -5
  97. mage_ai/server/frontend_dist/manage.html +5 -5
  98. mage_ai/server/frontend_dist/oauth.html +4 -4
  99. mage_ai/server/frontend_dist/overview.html +5 -5
  100. mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
  101. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
  102. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
  103. mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +5 -5
  104. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  105. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
  106. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
  107. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
  108. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
  109. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
  110. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
  111. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +5 -5
  112. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
  113. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
  114. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
  115. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  116. mage_ai/server/frontend_dist/pipelines.html +5 -5
  117. mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
  118. mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +5 -5
  119. mage_ai/server/frontend_dist/settings/workspace/permissions.html +5 -5
  120. mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
  121. mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +5 -5
  122. mage_ai/server/frontend_dist/settings/workspace/roles.html +5 -5
  123. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +5 -5
  124. mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +5 -5
  125. mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
  126. mage_ai/server/frontend_dist/settings.html +2 -2
  127. mage_ai/server/frontend_dist/sign-in.html +20 -20
  128. mage_ai/server/frontend_dist/templates/[...slug].html +5 -5
  129. mage_ai/server/frontend_dist/templates.html +5 -5
  130. mage_ai/server/frontend_dist/terminal.html +5 -5
  131. mage_ai/server/frontend_dist/test.html +5 -5
  132. mage_ai/server/frontend_dist/triggers.html +5 -5
  133. mage_ai/server/frontend_dist/version-control.html +5 -5
  134. mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
  135. mage_ai/server/frontend_dist_base_path_template/_next/static/aoO6jYZLVlUGCCdY-wmy8/_buildManifest.js +1 -0
  136. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{1749-9a6276b2918fdae1.js → 1749-bf512b4dabbab7fa.js} +1 -1
  137. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{1952-ac7722e8b1ab88fe.js → 1952-57858e7445d24413.js} +1 -1
  138. mage_ai/server/{frontend_dist/_next/static/chunks/2714-1e79e9f2e998b544.js → frontend_dist_base_path_template/_next/static/chunks/2714-68fef54789d7eaeb.js} +1 -1
  139. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-92cdffd87b6f6e05.js +1 -0
  140. mage_ai/server/{frontend_dist/_next/static/chunks/3419-f8d518d024e7b5c8.js → frontend_dist_base_path_template/_next/static/chunks/3419-715ca383fa15a5ef.js} +1 -1
  141. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3437-b4d6a037cf5781f8.js +1 -0
  142. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-c9fb980f03df6450.js +1 -0
  143. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4267-cb102e060a43d9bd.js +1 -0
  144. mage_ai/server/{frontend_dist/_next/static/chunks/4366-93e09e5a4a7e182c.js → frontend_dist_base_path_template/_next/static/chunks/4366-3e52497942acbafe.js} +1 -1
  145. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{4783-1a21d9be47574bba.js → 4783-422429203610c318.js} +1 -1
  146. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-e26a0768db1cfdba.js +1 -0
  147. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{5896-14e5a23b1c6a0769.js → 5896-7b8e36634d7d94eb.js} +1 -1
  148. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{6285-e9b45335bfb9ccaf.js → 6285-648f9a732e100b2f.js} +1 -1
  149. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6798-b904395b0c18647b.js +1 -0
  150. mage_ai/server/{frontend_dist/_next/static/chunks/7022-070ec0144a4d029c.js → frontend_dist_base_path_template/_next/static/chunks/7022-e76cae3ba5ee5312.js} +1 -1
  151. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/722-900f786d24f91b2e.js +1 -0
  152. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{7361-694e1e4fb9c97d68.js → 7361-6c5c9063b9f91700.js} +1 -1
  153. mage_ai/server/{frontend_dist/_next/static/chunks/8146-92e7ccfed169ee9c.js → frontend_dist_base_path_template/_next/static/chunks/8146-27f0e31f309897a5.js} +1 -1
  154. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/845-9a73c65fe3fdc328.js +1 -0
  155. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8487-8e1c09546dff4dbf.js +1 -0
  156. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-cc44b07f248707b0.js +1 -0
  157. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9618-4eb49cdbd1ba11d7.js +1 -0
  158. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{976-18c98af60b76f1a7.js → 976-0a8c2c4d7acd957b.js} +1 -1
  159. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-78c4a077a2f279c2.js +1 -0
  160. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-b37d221eb5ddc248.js +1 -0
  161. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-7adc543fc490367a.js +1 -0
  162. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-51d366993f6dd449.js +1 -0
  163. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{files-449a022f2f0f2d94.js → files-fe6e73463a20d67c.js} +1 -1
  164. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{manage-f83deb790548693b.js → manage-d8a38b5d1f50e798.js} +1 -1
  165. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-9adc2974aada27ba.js +1 -0
  166. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-51b1311dff2a974e.js +1 -0
  167. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-2333e524d34b474a.js +1 -0
  168. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-e051057d9fe94f23.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-6d1afeb4a84f50f7.js} +1 -1
  169. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-1ff9bb8e22ca1e75.js +1 -0
  170. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-11363aa58d51f4e1.js +1 -0
  171. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-779c3ef0676a12ac.js +1 -0
  172. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-bbea9a088657404a.js +1 -0
  173. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-3737f2b0afc2ede3.js +1 -0
  174. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-3c8f062913c66f3e.js +1 -0
  175. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-c1f4ed17d501ccca.js +1 -0
  176. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-8bdd858240d5dbf6.js +1 -0
  177. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-dd4fb405695f74bf.js +1 -0
  178. mage_ai/server/frontend_dist_base_path_template/block-layout.html +2 -2
  179. mage_ai/server/frontend_dist_base_path_template/compute.html +5 -5
  180. mage_ai/server/frontend_dist_base_path_template/files.html +5 -5
  181. mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +5 -5
  182. mage_ai/server/frontend_dist_base_path_template/global-data-products.html +5 -5
  183. mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +5 -5
  184. mage_ai/server/frontend_dist_base_path_template/global-hooks.html +5 -5
  185. mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
  186. mage_ai/server/frontend_dist_base_path_template/manage/files.html +5 -5
  187. mage_ai/server/frontend_dist_base_path_template/manage/settings.html +5 -5
  188. mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +5 -5
  189. mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +5 -5
  190. mage_ai/server/frontend_dist_base_path_template/manage/users.html +5 -5
  191. mage_ai/server/frontend_dist_base_path_template/manage.html +5 -5
  192. mage_ai/server/frontend_dist_base_path_template/oauth.html +4 -4
  193. mage_ai/server/frontend_dist_base_path_template/overview.html +5 -5
  194. mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +5 -5
  195. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +5 -5
  196. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +5 -5
  197. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +5 -5
  198. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
  199. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +5 -5
  200. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +5 -5
  201. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
  202. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +5 -5
  203. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +5 -5
  204. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +5 -5
  205. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +5 -5
  206. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +5 -5
  207. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +5 -5
  208. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +5 -5
  209. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
  210. mage_ai/server/frontend_dist_base_path_template/pipelines.html +5 -5
  211. mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +5 -5
  212. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +5 -5
  213. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +5 -5
  214. mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +5 -5
  215. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +5 -5
  216. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +5 -5
  217. mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +5 -5
  218. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +5 -5
  219. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +5 -5
  220. mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
  221. mage_ai/server/frontend_dist_base_path_template/sign-in.html +23 -23
  222. mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +5 -5
  223. mage_ai/server/frontend_dist_base_path_template/templates.html +5 -5
  224. mage_ai/server/frontend_dist_base_path_template/terminal.html +5 -5
  225. mage_ai/server/frontend_dist_base_path_template/test.html +5 -5
  226. mage_ai/server/frontend_dist_base_path_template/triggers.html +5 -5
  227. mage_ai/server/frontend_dist_base_path_template/version-control.html +5 -5
  228. mage_ai/server/server.py +9 -3
  229. mage_ai/services/k8s/job_manager.py +1 -0
  230. mage_ai/settings/repo.py +3 -0
  231. mage_ai/shared/files.py +47 -0
  232. mage_ai/shared/models.py +1 -0
  233. mage_ai/streaming/constants.py +1 -0
  234. mage_ai/streaming/sinks/postgres.py +2 -0
  235. mage_ai/streaming/sinks/rabbitmq.py +76 -0
  236. mage_ai/streaming/sinks/sink_factory.py +4 -0
  237. mage_ai/tests/api/operations/test_operations_with_hooks.py +136 -91
  238. mage_ai/tests/api/policies/test_oauth_policy.py +38 -0
  239. mage_ai/tests/data_preparation/models/global_hooks/test_global_hooks.py +33 -8
  240. mage_ai/tests/data_preparation/models/global_hooks/test_hook.py +82 -38
  241. mage_ai/tests/data_preparation/models/global_hooks/test_predicates.py +803 -0
  242. mage_ai/tests/data_preparation/models/global_hooks/test_utils.py +6 -1
  243. mage_ai/tests/data_preparation/models/test_block.py +26 -0
  244. mage_ai/tests/data_preparation/models/test_pipeline.py +10 -0
  245. mage_ai/tests/factory.py +40 -2
  246. mage_ai/tests/orchestration/test_pipeline_scheduler.py +82 -1
  247. mage_ai/tests/services/k8s/test_job_manager.py +16 -0
  248. mage_ai/tests/shared/mixins.py +60 -23
  249. mage_ai/tests/streaming/sinks/test_rabbitmq.py +36 -0
  250. {mage_ai-0.9.46.dist-info → mage_ai-0.9.47.dist-info}/METADATA +7 -4
  251. {mage_ai-0.9.46.dist-info → mage_ai-0.9.47.dist-info}/RECORD +257 -243
  252. {mage_ai-0.9.46.dist-info → mage_ai-0.9.47.dist-info}/WHEEL +1 -1
  253. mage_ai/server/frontend_dist/_next/static/9jB4XPuz6BzxBcG9VNao5/_buildManifest.js +0 -1
  254. mage_ai/server/frontend_dist/_next/static/chunks/3943-9e1105393a3be0de.js +0 -1
  255. mage_ai/server/frontend_dist/_next/static/chunks/4267-fd4d8049e83178de.js +0 -1
  256. mage_ai/server/frontend_dist/_next/static/chunks/5810-12eadc488265d55b.js +0 -1
  257. mage_ai/server/frontend_dist/_next/static/chunks/595-0d174b1f9fbfce4f.js +0 -1
  258. mage_ai/server/frontend_dist/_next/static/chunks/6333-bc1b433b428a9095.js +0 -1
  259. mage_ai/server/frontend_dist/_next/static/chunks/722-a1584445357a276c.js +0 -1
  260. mage_ai/server/frontend_dist/_next/static/chunks/8487-032ef9b17d20aad9.js +0 -1
  261. mage_ai/server/frontend_dist/_next/static/chunks/9264-1d4f0327d42fed91.js +0 -1
  262. mage_ai/server/frontend_dist/_next/static/chunks/9618-2c5045255ac5a6e7.js +0 -1
  263. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-ebef928183f9a3bb.js +0 -1
  264. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-0f2d4be6fdca86ca.js +0 -1
  265. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-77edfa32d000e88b.js +0 -1
  266. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-e561ae38cf5592e8.js +0 -1
  267. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-10e9a2d19541caa2.js +0 -1
  268. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-c8d3a5289ab93f88.js +0 -1
  269. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-ff7e9108502f5716.js +0 -1
  270. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-0691711636fa95c7.js +0 -1
  271. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-2914e326a5f1ffe0.js +0 -1
  272. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a7500e6e53084d3.js +0 -1
  273. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-c0e551d265a8d467.js +0 -1
  274. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-e47db5c3eaf683af.js +0 -1
  275. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-55ac955dfa9a5a8d.js +0 -1
  276. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-29c92a9bc54ae5cd.js +0 -1
  277. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-572d82d6eb7a5d43.js +0 -1
  278. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-2d26d80370a2e481.js +0 -1
  279. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-9e1105393a3be0de.js +0 -1
  280. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4267-fd4d8049e83178de.js +0 -1
  281. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-12eadc488265d55b.js +0 -1
  282. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/595-0d174b1f9fbfce4f.js +0 -1
  283. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6333-bc1b433b428a9095.js +0 -1
  284. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/722-a1584445357a276c.js +0 -1
  285. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8487-032ef9b17d20aad9.js +0 -1
  286. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-1d4f0327d42fed91.js +0 -1
  287. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9618-2c5045255ac5a6e7.js +0 -1
  288. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-ebef928183f9a3bb.js +0 -1
  289. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-0f2d4be6fdca86ca.js +0 -1
  290. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-77edfa32d000e88b.js +0 -1
  291. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-e561ae38cf5592e8.js +0 -1
  292. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-10e9a2d19541caa2.js +0 -1
  293. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-c8d3a5289ab93f88.js +0 -1
  294. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-ff7e9108502f5716.js +0 -1
  295. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-0691711636fa95c7.js +0 -1
  296. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-2914e326a5f1ffe0.js +0 -1
  297. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a7500e6e53084d3.js +0 -1
  298. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-c0e551d265a8d467.js +0 -1
  299. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-e47db5c3eaf683af.js +0 -1
  300. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-55ac955dfa9a5a8d.js +0 -1
  301. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-29c92a9bc54ae5cd.js +0 -1
  302. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-572d82d6eb7a5d43.js +0 -1
  303. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-2d26d80370a2e481.js +0 -1
  304. mage_ai/server/frontend_dist_base_path_template/_next/static/uPDjJYpJMst1q6psbRyte/_buildManifest.js +0 -1
  305. /mage_ai/server/frontend_dist/_next/static/{9jB4XPuz6BzxBcG9VNao5 → N3FS4bHv0jpYeeg672uYK}/_ssgManifest.js +0 -0
  306. /mage_ai/server/frontend_dist_base_path_template/_next/static/{uPDjJYpJMst1q6psbRyte → aoO6jYZLVlUGCCdY-wmy8}/_ssgManifest.js +0 -0
  307. {mage_ai-0.9.46.dist-info → mage_ai-0.9.47.dist-info}/LICENSE +0 -0
  308. {mage_ai-0.9.46.dist-info → mage_ai-0.9.47.dist-info}/entry_points.txt +0 -0
  309. {mage_ai-0.9.46.dist-info → mage_ai-0.9.47.dist-info}/top_level.txt +0 -0
mage_ai/io/chroma.py ADDED
@@ -0,0 +1,153 @@
1
+ import logging
2
+ from typing import Dict
3
+
4
+ import chromadb
5
+ from pandas import DataFrame
6
+
7
+ from mage_ai.io.base import BaseIO
8
+ from mage_ai.io.config import BaseConfigLoader, ConfigKey
9
+
10
+ logger = logging.getLogger(__name__)
11
+
12
+
13
+ class Chroma(BaseIO):
14
+ def __init__(
15
+ self,
16
+ collection: str,
17
+ path: str = None,
18
+ verbose: bool = True,
19
+ **kwargs,) -> None:
20
+ """
21
+ Initializes settings to connect to chroma db.
22
+ """
23
+ super().__init__(verbose=verbose)
24
+ self.collection = collection
25
+ if path is None:
26
+ self.client = chromadb.Client()
27
+ else:
28
+ self.client = chromadb.PersistentClient(path=path)
29
+
30
+ @classmethod
31
+ def with_config(cls, config: BaseConfigLoader) -> 'Chroma':
32
+ return cls(
33
+ collection=config[ConfigKey.CHROMA_COLLECTION],
34
+ path=config[ConfigKey.CHROMA_PATH],
35
+ )
36
+
37
+ def __convert_to_multiple_rows(self, data: Dict, column_name: str, item_length: int):
38
+ """
39
+ Convert the data from chroma query into multiple rows.
40
+
41
+ Args:
42
+ data (Dict): Data returned from chroma query.
43
+ Example format:
44
+ {
45
+ 'ids': [['id1', '0', 'id2']],
46
+ 'distances': [[0.6036068181428754, 0.6036068181428754, 1.267588382105355]],
47
+ 'metadatas': [[
48
+ {'chapter': '3', 'verse': '16'},
49
+ None,
50
+ {'chapter': '3', 'verse': '5'}
51
+ ]],
52
+ 'embeddings': None,
53
+ 'documents': [['abc', 'abc', 'def']],
54
+ 'uris': None,
55
+ 'data': None
56
+ }
57
+ column_name (str): Name of the field in data to convert.
58
+ item_length (int): Number of expected items in the list.
59
+
60
+ Returns:
61
+ DataFrame: Data frame object loaded from the chroma query fuction.
62
+ Chroma query function requries dictionary contains number of results matched.
63
+ """
64
+ print(f"Testing data: {data}")
65
+ converted_array = []
66
+ if data[column_name] is None:
67
+ for _ in range(item_length):
68
+ converted_array.append('')
69
+ else:
70
+ for list_items in data[column_name]:
71
+ for item in list_items:
72
+ if item is None:
73
+ converted_array.append('')
74
+ else:
75
+ converted_array.append(item)
76
+ return converted_array
77
+
78
+ def load(
79
+ self,
80
+ n_results: int,
81
+ collection: str = None,
82
+ query_embeddings: str = None,
83
+ query_texts: str = None,
84
+ **kwargs,
85
+ ) -> DataFrame:
86
+ """
87
+ Loads the data from Chroma with embeddings or query_texts.
88
+
89
+ Args:
90
+ n_results (int): Number of results to return.
91
+ query_embeddings (str): Embeddings to query.
92
+ query_texts (str): Texts to query.
93
+
94
+ Returns:
95
+ DataFrame: Data frame object loaded from the chroma query fuction.
96
+ Chroma query function requries dictionary contains number of results matched.
97
+ """
98
+ collection_client = self.client.get_or_create_collection(
99
+ name=self.collection if collection is None else collection)
100
+ # Chroma supports query by embeddings or query texts
101
+ if query_embeddings is not None:
102
+ data = collection_client.query(
103
+ query_embeddings=query_embeddings,
104
+ n_results=n_results
105
+ )
106
+ elif query_texts is not None:
107
+ data = collection_client.query(
108
+ query_texts=query_texts,
109
+ n_results=n_results
110
+ )
111
+ else:
112
+ raise ValueError("query_embeddings or query_texts must be specified")
113
+ # Flatten the query results into multiple rows
114
+ flatten_data = {}
115
+ item_length = len(data['ids'][0])
116
+ flatten_data['ids'] = self.__convert_to_multiple_rows(
117
+ data, 'ids', item_length)
118
+ flatten_data['distances'] = self.__convert_to_multiple_rows(
119
+ data, 'distances', item_length)
120
+ flatten_data['metadatas'] = self.__convert_to_multiple_rows(
121
+ data, 'metadatas', item_length)
122
+ flatten_data['embeddings'] = self.__convert_to_multiple_rows(
123
+ data, 'embeddings', item_length)
124
+ flatten_data['documents'] = self.__convert_to_multiple_rows(
125
+ data, 'documents', item_length)
126
+ flatten_data['data'] = self.__convert_to_multiple_rows(
127
+ data, 'data', item_length)
128
+ return DataFrame.from_dict(flatten_data)
129
+
130
+ def export(
131
+ self,
132
+ df: DataFrame,
133
+ document_column: str,
134
+ collection: str = None,
135
+ **kwargs,
136
+ ) -> None:
137
+ """
138
+ Exports the input dataframe to the chroma collection.
139
+ The column required is document_column.
140
+ It contains the contextual prompt for query and search.
141
+
142
+ Args:
143
+ df (DataFrame): Data frame to export.
144
+ document_column (str): name of the document.
145
+ """
146
+ docs = df[f'{document_column}'].tolist()
147
+ ids = [str(x) for x in df.index.tolist()]
148
+ collection_client = self.client.get_or_create_collection(
149
+ name=self.collection if collection is None else collection)
150
+ return collection_client.add(
151
+ documents=docs,
152
+ ids=ids,
153
+ )
mage_ai/io/config.py CHANGED
@@ -27,6 +27,9 @@ class ConfigKey(str, Enum):
27
27
  AZURE_STORAGE_ACCOUNT_NAME = 'AZURE_STORAGE_ACCOUNT_NAME'
28
28
  AZURE_TENANT_ID = 'AZURE_TENANT_ID'
29
29
 
30
+ CHROMA_COLLECTION = 'CHROMA_COLLECTION'
31
+ CHROMA_PATH = 'CHROMA_PATH'
32
+
30
33
  CLICKHOUSE_DATABASE = 'CLICKHOUSE_DATABASE'
31
34
  CLICKHOUSE_HOST = 'CLICKHOUSE_HOST'
32
35
  CLICKHOUSE_INTERFACE = 'CLICKHOUSE_INTERFACE'
@@ -323,6 +326,7 @@ class VerboseConfigKey(str, Enum):
323
326
 
324
327
  AWS = 'AWS'
325
328
  BIGQUERY = 'BigQuery'
329
+ CHROMA = 'Chroma'
326
330
  CLICKHOUSE = 'ClickHouse'
327
331
  DRUID = 'Druid'
328
332
  DUCKDB = 'Duck DB'
@@ -370,6 +374,10 @@ class ConfigFileLoader(BaseConfigLoader):
370
374
  VerboseConfigKey.REDSHIFT,
371
375
  'user',
372
376
  ),
377
+ ConfigKey.CHROMA_COLLECTION: (
378
+ VerboseConfigKey.CHROMA, 'collection'),
379
+ ConfigKey.CHROMA_PATH: (
380
+ VerboseConfigKey.CHROMA, 'path'),
373
381
  ConfigKey.CLICKHOUSE_DATABASE: (
374
382
  VerboseConfigKey.CLICKHOUSE, 'database'),
375
383
  ConfigKey.CLICKHOUSE_HOST: (
@@ -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:
@@ -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,
@@ -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.
@@ -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.46'
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-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-ebef928183f9a3bb.js" defer=""></script><script src="/_next/static/chunks/pages/_error-e989623bffcbf724.js" defer=""></script><script src="/_next/static/9jB4XPuz6BzxBcG9VNao5/_buildManifest.js" defer=""></script><script src="/_next/static/9jB4XPuz6BzxBcG9VNao5/_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":"9jB4XPuz6BzxBcG9VNao5","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();