@pattern-stack/codegen 0.15.1 → 0.15.2
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.
- package/CHANGELOG.md +53 -0
- package/dist/chunk-24CWKBK5.js +94 -0
- package/dist/chunk-24CWKBK5.js.map +1 -0
- package/dist/chunk-2E224ZSN.js +20 -0
- package/dist/chunk-2E224ZSN.js.map +1 -0
- package/dist/chunk-2FTZLDBP.js +179 -0
- package/dist/chunk-2FTZLDBP.js.map +1 -0
- package/dist/chunk-2N4UG4VD.js +20 -0
- package/dist/chunk-2N4UG4VD.js.map +1 -0
- package/dist/chunk-2TVVBC53.js +92 -0
- package/dist/chunk-2TVVBC53.js.map +1 -0
- package/dist/chunk-2VHZ7EKC.js +37 -0
- package/dist/chunk-2VHZ7EKC.js.map +1 -0
- package/dist/chunk-32BMMV4H.js +109 -0
- package/dist/chunk-32BMMV4H.js.map +1 -0
- package/dist/chunk-32DOFN3T.js +4042 -0
- package/dist/chunk-32DOFN3T.js.map +1 -0
- package/dist/chunk-36U5UGIO.js +107 -0
- package/dist/chunk-36U5UGIO.js.map +1 -0
- package/dist/chunk-3CJFPU6Q.js +14 -0
- package/dist/chunk-3CJFPU6Q.js.map +1 -0
- package/dist/chunk-3NMCDN7L.js +90 -0
- package/dist/chunk-3NMCDN7L.js.map +1 -0
- package/dist/chunk-3SZFUTXE.js +62 -0
- package/dist/chunk-3SZFUTXE.js.map +1 -0
- package/dist/chunk-4DOJBQTP.js +117 -0
- package/dist/chunk-4DOJBQTP.js.map +1 -0
- package/dist/chunk-4JLJYWJC.js +308 -0
- package/dist/chunk-4JLJYWJC.js.map +1 -0
- package/dist/chunk-4KNXX6TI.js +29 -0
- package/dist/chunk-4KNXX6TI.js.map +1 -0
- package/dist/chunk-4LH67P4U.js +17 -0
- package/dist/chunk-4LH67P4U.js.map +1 -0
- package/dist/chunk-4MVGAMUA.js +40 -0
- package/dist/chunk-4MVGAMUA.js.map +1 -0
- package/dist/chunk-4OMHBMZJ.js +75 -0
- package/dist/chunk-4OMHBMZJ.js.map +1 -0
- package/dist/chunk-4RFHUZXU.js +635 -0
- package/dist/chunk-4RFHUZXU.js.map +1 -0
- package/dist/chunk-5A432NZJ.js +7 -0
- package/dist/chunk-5A432NZJ.js.map +1 -0
- package/dist/chunk-5Y7W3XR6.js +356 -0
- package/dist/chunk-5Y7W3XR6.js.map +1 -0
- package/dist/chunk-6DWFJNIK.js +15 -0
- package/dist/chunk-6DWFJNIK.js.map +1 -0
- package/dist/chunk-6I7ULIN6.js +15 -0
- package/dist/chunk-6I7ULIN6.js.map +1 -0
- package/dist/chunk-6XY6ZMMD.js +25 -0
- package/dist/chunk-6XY6ZMMD.js.map +1 -0
- package/dist/chunk-7B3RYX45.js +63 -0
- package/dist/chunk-7B3RYX45.js.map +1 -0
- package/dist/chunk-7C3FOSDI.js +1 -0
- package/dist/chunk-7C3FOSDI.js.map +1 -0
- package/dist/chunk-7KOW6PU6.js +59 -0
- package/dist/chunk-7KOW6PU6.js.map +1 -0
- package/dist/chunk-7LKAMLV4.js +92 -0
- package/dist/chunk-7LKAMLV4.js.map +1 -0
- package/dist/chunk-7RELQJIN.js +22 -0
- package/dist/chunk-7RELQJIN.js.map +1 -0
- package/dist/chunk-AHV4GDYM.js +63 -0
- package/dist/chunk-AHV4GDYM.js.map +1 -0
- package/dist/chunk-AQFQ4BYM.js +81 -0
- package/dist/chunk-AQFQ4BYM.js.map +1 -0
- package/dist/chunk-AS3NAZB6.js +14 -0
- package/dist/chunk-AS3NAZB6.js.map +1 -0
- package/dist/chunk-BGULBWKJ.js +88 -0
- package/dist/chunk-BGULBWKJ.js.map +1 -0
- package/dist/chunk-BIO6F7YI.js +17 -0
- package/dist/chunk-BIO6F7YI.js.map +1 -0
- package/dist/chunk-BOPZWRJK.js +36 -0
- package/dist/chunk-BOPZWRJK.js.map +1 -0
- package/dist/chunk-BPARRK6F.js +14 -0
- package/dist/chunk-BPARRK6F.js.map +1 -0
- package/dist/chunk-CO6LUM72.js +59 -0
- package/dist/chunk-CO6LUM72.js.map +1 -0
- package/dist/chunk-COGHTKXY.js +84 -0
- package/dist/chunk-COGHTKXY.js.map +1 -0
- package/dist/chunk-DCCZB4UC.js +100 -0
- package/dist/chunk-DCCZB4UC.js.map +1 -0
- package/dist/chunk-DKKFTHHI.js +53 -0
- package/dist/chunk-DKKFTHHI.js.map +1 -0
- package/dist/chunk-DV4RV2DC.js +59 -0
- package/dist/chunk-DV4RV2DC.js.map +1 -0
- package/dist/chunk-EDKJU5BO.js +11 -0
- package/dist/chunk-EDKJU5BO.js.map +1 -0
- package/dist/chunk-EO2QPOKH.js +116 -0
- package/dist/chunk-EO2QPOKH.js.map +1 -0
- package/dist/chunk-EOLLMEAH.js +155 -0
- package/dist/chunk-EOLLMEAH.js.map +1 -0
- package/dist/chunk-EWYCWP4H.js +14 -0
- package/dist/chunk-EWYCWP4H.js.map +1 -0
- package/dist/chunk-EXVDJMIY.js +33 -0
- package/dist/chunk-EXVDJMIY.js.map +1 -0
- package/dist/chunk-FASRXRX5.js +19 -0
- package/dist/chunk-FASRXRX5.js.map +1 -0
- package/dist/chunk-FI34KYZ5.js +1 -0
- package/dist/chunk-FI34KYZ5.js.map +1 -0
- package/dist/chunk-FN2PYDPP.js +1 -0
- package/dist/chunk-FN2PYDPP.js.map +1 -0
- package/dist/chunk-GM3RMJIJ.js +92 -0
- package/dist/chunk-GM3RMJIJ.js.map +1 -0
- package/dist/chunk-GYGNEQSC.js +9 -0
- package/dist/chunk-GYGNEQSC.js.map +1 -0
- package/dist/chunk-H5NH7KPE.js +21 -0
- package/dist/chunk-H5NH7KPE.js.map +1 -0
- package/dist/chunk-HNWZFNKP.js +168 -0
- package/dist/chunk-HNWZFNKP.js.map +1 -0
- package/dist/chunk-HUH73XGI.js +1 -0
- package/dist/chunk-HUH73XGI.js.map +1 -0
- package/dist/chunk-I6MG4M3F.js +201 -0
- package/dist/chunk-I6MG4M3F.js.map +1 -0
- package/dist/chunk-I6MVCB5A.js +39 -0
- package/dist/chunk-I6MVCB5A.js.map +1 -0
- package/dist/chunk-IBGER4YK.js +12 -0
- package/dist/chunk-IBGER4YK.js.map +1 -0
- package/dist/chunk-IF5I3DAA.js +92 -0
- package/dist/chunk-IF5I3DAA.js.map +1 -0
- package/dist/chunk-IP4OO26U.js +54 -0
- package/dist/chunk-IP4OO26U.js.map +1 -0
- package/dist/chunk-IWAOY6KC.js +1 -0
- package/dist/chunk-IWAOY6KC.js.map +1 -0
- package/dist/chunk-J37YWU7Y.js +19 -0
- package/dist/chunk-J37YWU7Y.js.map +1 -0
- package/dist/chunk-J6KZS54B.js +269 -0
- package/dist/chunk-J6KZS54B.js.map +1 -0
- package/dist/chunk-J6MN42LG.js +19 -0
- package/dist/chunk-J6MN42LG.js.map +1 -0
- package/dist/chunk-JRQO2IOF.js +65 -0
- package/dist/chunk-JRQO2IOF.js.map +1 -0
- package/dist/chunk-JRVNVKN6.js +212 -0
- package/dist/chunk-JRVNVKN6.js.map +1 -0
- package/dist/chunk-JWNHNUYL.js +96 -0
- package/dist/chunk-JWNHNUYL.js.map +1 -0
- package/dist/chunk-K2I6XIK5.js +122 -0
- package/dist/chunk-K2I6XIK5.js.map +1 -0
- package/dist/chunk-KMZCQASO.js +111 -0
- package/dist/chunk-KMZCQASO.js.map +1 -0
- package/dist/chunk-KVOWSC5S.js +1 -0
- package/dist/chunk-KVOWSC5S.js.map +1 -0
- package/dist/chunk-KYR3B3OW.js +79 -0
- package/dist/chunk-KYR3B3OW.js.map +1 -0
- package/dist/chunk-L3LZWWSX.js +61 -0
- package/dist/chunk-L3LZWWSX.js.map +1 -0
- package/dist/chunk-L4SDDEEU.js +1 -0
- package/dist/chunk-L4SDDEEU.js.map +1 -0
- package/dist/chunk-L6FTY45T.js +13 -0
- package/dist/chunk-L6FTY45T.js.map +1 -0
- package/dist/chunk-L7BNNRGI.js +134 -0
- package/dist/chunk-L7BNNRGI.js.map +1 -0
- package/dist/chunk-LG57S2SC.js +150 -0
- package/dist/chunk-LG57S2SC.js.map +1 -0
- package/dist/chunk-M6QLSLPO.js +97 -0
- package/dist/chunk-M6QLSLPO.js.map +1 -0
- package/dist/chunk-MZ6GV4YF.js +21 -0
- package/dist/chunk-MZ6GV4YF.js.map +1 -0
- package/dist/chunk-N5OTOWTP.js +55 -0
- package/dist/chunk-N5OTOWTP.js.map +1 -0
- package/dist/chunk-NN7XZEGF.js +14 -0
- package/dist/chunk-NN7XZEGF.js.map +1 -0
- package/dist/chunk-NPFPZ2HO.js +13 -0
- package/dist/chunk-NPFPZ2HO.js.map +1 -0
- package/dist/chunk-NXXDZ6ZF.js +42 -0
- package/dist/chunk-NXXDZ6ZF.js.map +1 -0
- package/dist/chunk-NYBCQZC7.js +11 -0
- package/dist/chunk-NYBCQZC7.js.map +1 -0
- package/dist/chunk-OFRRBC7M.js +78 -0
- package/dist/chunk-OFRRBC7M.js.map +1 -0
- package/dist/chunk-OGIZXGPY.js +222 -0
- package/dist/chunk-OGIZXGPY.js.map +1 -0
- package/dist/chunk-OKXZ63IA.js +168 -0
- package/dist/chunk-OKXZ63IA.js.map +1 -0
- package/dist/chunk-OSQRXVG2.js +58 -0
- package/dist/chunk-OSQRXVG2.js.map +1 -0
- package/dist/chunk-OTDN3OUQ.js +215 -0
- package/dist/chunk-OTDN3OUQ.js.map +1 -0
- package/dist/chunk-OZZJDRGW.js +122 -0
- package/dist/chunk-OZZJDRGW.js.map +1 -0
- package/dist/chunk-PNZSGAB2.js +114 -0
- package/dist/chunk-PNZSGAB2.js.map +1 -0
- package/dist/chunk-PRWIX6UW.js +21 -0
- package/dist/chunk-PRWIX6UW.js.map +1 -0
- package/dist/chunk-PSXUNOVU.js +7 -0
- package/dist/chunk-PSXUNOVU.js.map +1 -0
- package/dist/chunk-QLTJSCE6.js +44 -0
- package/dist/chunk-QLTJSCE6.js.map +1 -0
- package/dist/chunk-RC23QROE.js +447 -0
- package/dist/chunk-RC23QROE.js.map +1 -0
- package/dist/chunk-RFH7N6EP.js +36 -0
- package/dist/chunk-RFH7N6EP.js.map +1 -0
- package/dist/chunk-RHVN6NA7.js +134 -0
- package/dist/chunk-RHVN6NA7.js.map +1 -0
- package/dist/chunk-S7C6TIIF.js +21 -0
- package/dist/chunk-S7C6TIIF.js.map +1 -0
- package/dist/chunk-SNQ3TOWP.js +20 -0
- package/dist/chunk-SNQ3TOWP.js.map +1 -0
- package/dist/chunk-SOVM2VEK.js +14 -0
- package/dist/chunk-SOVM2VEK.js.map +1 -0
- package/dist/chunk-SQDOBLBP.js +13 -0
- package/dist/chunk-SQDOBLBP.js.map +1 -0
- package/dist/chunk-SR7F3TJY.js +130 -0
- package/dist/chunk-SR7F3TJY.js.map +1 -0
- package/dist/chunk-SZVPIHWE.js +129 -0
- package/dist/chunk-SZVPIHWE.js.map +1 -0
- package/dist/chunk-T4BIIU5E.js +89 -0
- package/dist/chunk-T4BIIU5E.js.map +1 -0
- package/dist/chunk-T6C4LFLC.js +112 -0
- package/dist/chunk-T6C4LFLC.js.map +1 -0
- package/dist/chunk-TNXH7BJS.js +48 -0
- package/dist/chunk-TNXH7BJS.js.map +1 -0
- package/dist/chunk-U64T4YZE.js +9 -0
- package/dist/chunk-U64T4YZE.js.map +1 -0
- package/dist/chunk-UQ5EHOH2.js +39 -0
- package/dist/chunk-UQ5EHOH2.js.map +1 -0
- package/dist/chunk-UTN4GBPQ.js +1 -0
- package/dist/chunk-UTN4GBPQ.js.map +1 -0
- package/dist/chunk-V4AF6DI4.js +16 -0
- package/dist/chunk-V4AF6DI4.js.map +1 -0
- package/dist/chunk-W72PRNJY.js +126 -0
- package/dist/chunk-W72PRNJY.js.map +1 -0
- package/dist/chunk-WEVWJKOW.js +81 -0
- package/dist/chunk-WEVWJKOW.js.map +1 -0
- package/dist/chunk-WL67FZGF.js +21 -0
- package/dist/chunk-WL67FZGF.js.map +1 -0
- package/dist/chunk-WPXNN6QS.js +290 -0
- package/dist/chunk-WPXNN6QS.js.map +1 -0
- package/dist/chunk-WRUUSZDJ.js +29 -0
- package/dist/chunk-WRUUSZDJ.js.map +1 -0
- package/dist/chunk-X2GMTYPA.js +50 -0
- package/dist/chunk-X2GMTYPA.js.map +1 -0
- package/dist/chunk-XCEI7NUH.js +41 -0
- package/dist/chunk-XCEI7NUH.js.map +1 -0
- package/dist/chunk-Y7GDG744.js +88 -0
- package/dist/chunk-Y7GDG744.js.map +1 -0
- package/dist/chunk-Y7RRSEOC.js +9 -0
- package/dist/chunk-Y7RRSEOC.js.map +1 -0
- package/dist/chunk-YPWODKD5.js +184 -0
- package/dist/chunk-YPWODKD5.js.map +1 -0
- package/dist/chunk-YSLTTQLC.js +25 -0
- package/dist/chunk-YSLTTQLC.js.map +1 -0
- package/dist/chunk-YTN6BKWA.js +121 -0
- package/dist/chunk-YTN6BKWA.js.map +1 -0
- package/dist/chunk-Z7PQCAVK.js +200 -0
- package/dist/chunk-Z7PQCAVK.js.map +1 -0
- package/dist/chunk-ZUKFQL6E.js +47 -0
- package/dist/chunk-ZUKFQL6E.js.map +1 -0
- package/dist/chunk-ZUMULSEQ.js +1 -0
- package/dist/chunk-ZUMULSEQ.js.map +1 -0
- package/dist/runtime/analytics/index.js +8 -41
- package/dist/runtime/analytics/index.js.map +1 -1
- package/dist/runtime/analytics/types.js +8 -41
- package/dist/runtime/analytics/types.js.map +1 -1
- package/dist/runtime/base-classes/activity-entity-repository.js +6 -312
- package/dist/runtime/base-classes/activity-entity-repository.js.map +1 -1
- package/dist/runtime/base-classes/activity-entity-service.js +6 -212
- package/dist/runtime/base-classes/activity-entity-service.js.map +1 -1
- package/dist/runtime/base-classes/base-read-use-cases.js +5 -27
- package/dist/runtime/base-classes/base-read-use-cases.js.map +1 -1
- package/dist/runtime/base-classes/base-repository.js +5 -277
- package/dist/runtime/base-classes/base-repository.js.map +1 -1
- package/dist/runtime/base-classes/base-service.js +5 -184
- package/dist/runtime/base-classes/base-service.js.map +1 -1
- package/dist/runtime/base-classes/index.js +59 -1076
- package/dist/runtime/base-classes/index.js.map +1 -1
- package/dist/runtime/base-classes/integrated-entity-repository.js +6 -486
- package/dist/runtime/base-classes/integrated-entity-repository.js.map +1 -1
- package/dist/runtime/base-classes/integrated-entity-service.js +6 -213
- package/dist/runtime/base-classes/integrated-entity-service.js.map +1 -1
- package/dist/runtime/base-classes/junction-integration-repository.js +8 -448
- package/dist/runtime/base-classes/junction-integration-repository.js.map +1 -1
- package/dist/runtime/base-classes/knowledge-entity-repository.js +6 -283
- package/dist/runtime/base-classes/knowledge-entity-repository.js.map +1 -1
- package/dist/runtime/base-classes/knowledge-entity-service.js +6 -190
- package/dist/runtime/base-classes/knowledge-entity-service.js.map +1 -1
- package/dist/runtime/base-classes/lifecycle-events.js +8 -70
- package/dist/runtime/base-classes/lifecycle-events.js.map +1 -1
- package/dist/runtime/base-classes/metadata-entity-repository.js +6 -330
- package/dist/runtime/base-classes/metadata-entity-repository.js.map +1 -1
- package/dist/runtime/base-classes/metadata-entity-service.js +6 -212
- package/dist/runtime/base-classes/metadata-entity-service.js.map +1 -1
- package/dist/runtime/base-classes/tenant-context.js +10 -36
- package/dist/runtime/base-classes/tenant-context.js.map +1 -1
- package/dist/runtime/base-classes/with-analytics.js +4 -7
- package/dist/runtime/base-classes/with-analytics.js.map +1 -1
- package/dist/runtime/constants/tokens.js +5 -3
- package/dist/runtime/constants/tokens.js.map +1 -1
- package/dist/runtime/eav-helpers.js +2 -0
- package/dist/runtime/eav-helpers.js.map +1 -1
- package/dist/runtime/pipes/zod-validation.pipe.js +3 -10
- package/dist/runtime/pipes/zod-validation.pipe.js.map +1 -1
- package/dist/runtime/shared/openapi/error-response.dto.js +5 -8
- package/dist/runtime/shared/openapi/error-response.dto.js.map +1 -1
- package/dist/runtime/shared/openapi/errors.js +5 -19
- package/dist/runtime/shared/openapi/errors.js.map +1 -1
- package/dist/runtime/shared/openapi/index.js +15 -106
- package/dist/runtime/shared/openapi/index.js.map +1 -1
- package/dist/runtime/shared/openapi/registry.js +6 -103
- package/dist/runtime/shared/openapi/registry.js.map +1 -1
- package/dist/runtime/shared/openapi/registry.tokens.js +4 -2
- package/dist/runtime/shared/openapi/registry.tokens.js.map +1 -1
- package/dist/runtime/subsystems/analytics/analytics.module.js +8 -117
- package/dist/runtime/subsystems/analytics/analytics.module.js.map +1 -1
- package/dist/runtime/subsystems/analytics/analytics.tokens.js +7 -8
- package/dist/runtime/subsystems/analytics/analytics.tokens.js.map +1 -1
- package/dist/runtime/subsystems/analytics/cube-backend.js +6 -71
- package/dist/runtime/subsystems/analytics/cube-backend.js.map +1 -1
- package/dist/runtime/subsystems/analytics/index.js +16 -117
- package/dist/runtime/subsystems/analytics/index.js.map +1 -1
- package/dist/runtime/subsystems/analytics/noop-backend.js +4 -21
- package/dist/runtime/subsystems/analytics/noop-backend.js.map +1 -1
- package/dist/runtime/subsystems/auth/auth-oauth-state.schema.js +4 -8
- package/dist/runtime/subsystems/auth/auth-oauth-state.schema.js.map +1 -1
- package/dist/runtime/subsystems/auth/auth.module.js +12 -359
- package/dist/runtime/subsystems/auth/auth.module.js.map +1 -1
- package/dist/runtime/subsystems/auth/auth.tokens.js +12 -13
- package/dist/runtime/subsystems/auth/auth.tokens.js.map +1 -1
- package/dist/runtime/subsystems/auth/backends/encryption-key/env.js +4 -49
- package/dist/runtime/subsystems/auth/backends/encryption-key/env.js.map +1 -1
- package/dist/runtime/subsystems/auth/backends/state-store.drizzle-backend.js +6 -64
- package/dist/runtime/subsystems/auth/backends/state-store.drizzle-backend.js.map +1 -1
- package/dist/runtime/subsystems/auth/backends/state-store.memory-backend.js +5 -47
- package/dist/runtime/subsystems/auth/backends/state-store.memory-backend.js.map +1 -1
- package/dist/runtime/subsystems/auth/controllers/auth.controller.js +5 -139
- package/dist/runtime/subsystems/auth/controllers/auth.controller.js.map +1 -1
- package/dist/runtime/subsystems/auth/index.js +53 -542
- package/dist/runtime/subsystems/auth/index.js.map +1 -1
- package/dist/runtime/subsystems/auth/middleware/requester-context.js +9 -65
- package/dist/runtime/subsystems/auth/middleware/requester-context.js.map +1 -1
- package/dist/runtime/subsystems/auth/protocols/oauth-state-store.js +4 -9
- package/dist/runtime/subsystems/auth/protocols/oauth-state-store.js.map +1 -1
- package/dist/runtime/subsystems/auth/runtime/connection-broken.error.js +4 -15
- package/dist/runtime/subsystems/auth/runtime/connection-broken.error.js.map +1 -1
- package/dist/runtime/subsystems/auth/runtime/oauth2-refresh.strategy.js +5 -104
- package/dist/runtime/subsystems/auth/runtime/oauth2-refresh.strategy.js.map +1 -1
- package/dist/runtime/subsystems/auth/runtime/session-expired.error.js +5 -16
- package/dist/runtime/subsystems/auth/runtime/session-expired.error.js.map +1 -1
- package/dist/runtime/subsystems/auth/runtime/with-auth-retry.js +5 -29
- package/dist/runtime/subsystems/auth/runtime/with-auth-retry.js.map +1 -1
- package/dist/runtime/subsystems/bridge/assert-tenant-id.js +5 -18
- package/dist/runtime/subsystems/bridge/assert-tenant-id.js.map +1 -1
- package/dist/runtime/subsystems/bridge/bridge-delivery-handler.js +12 -184
- package/dist/runtime/subsystems/bridge/bridge-delivery-handler.js.map +1 -1
- package/dist/runtime/subsystems/bridge/bridge-delivery.drizzle-backend.js +10 -448
- package/dist/runtime/subsystems/bridge/bridge-delivery.drizzle-backend.js.map +1 -1
- package/dist/runtime/subsystems/bridge/bridge-delivery.memory-backend.js +5 -126
- package/dist/runtime/subsystems/bridge/bridge-delivery.memory-backend.js.map +1 -1
- package/dist/runtime/subsystems/bridge/bridge-delivery.schema.js +6 -308
- package/dist/runtime/subsystems/bridge/bridge-delivery.schema.js.map +1 -1
- package/dist/runtime/subsystems/bridge/bridge-errors.js +6 -35
- package/dist/runtime/subsystems/bridge/bridge-errors.js.map +1 -1
- package/dist/runtime/subsystems/bridge/bridge-outbox-drain-hook.js +14 -606
- package/dist/runtime/subsystems/bridge/bridge-outbox-drain-hook.js.map +1 -1
- package/dist/runtime/subsystems/bridge/bridge.module.js +35 -3476
- package/dist/runtime/subsystems/bridge/bridge.module.js.map +1 -1
- package/dist/runtime/subsystems/bridge/bridge.tokens.js +9 -7
- package/dist/runtime/subsystems/bridge/bridge.tokens.js.map +1 -1
- package/dist/runtime/subsystems/bridge/event-flow.service.js +11 -137
- package/dist/runtime/subsystems/bridge/event-flow.service.js.map +1 -1
- package/dist/runtime/subsystems/bridge/generated/registry.js +4 -2
- package/dist/runtime/subsystems/bridge/generated/registry.js.map +1 -1
- package/dist/runtime/subsystems/bridge/index.js +60 -3470
- package/dist/runtime/subsystems/bridge/index.js.map +1 -1
- package/dist/runtime/subsystems/bridge/reserved-pools.js +4 -6
- package/dist/runtime/subsystems/bridge/reserved-pools.js.map +1 -1
- package/dist/runtime/subsystems/cache/cache.drizzle-backend.js +10 -133
- package/dist/runtime/subsystems/cache/cache.drizzle-backend.js.map +1 -1
- package/dist/runtime/subsystems/cache/cache.memory-backend.js +6 -101
- package/dist/runtime/subsystems/cache/cache.memory-backend.js.map +1 -1
- package/dist/runtime/subsystems/cache/cache.module.js +10 -278
- package/dist/runtime/subsystems/cache/cache.module.js.map +1 -1
- package/dist/runtime/subsystems/cache/cache.schema.js +4 -14
- package/dist/runtime/subsystems/cache/cache.schema.js.map +1 -1
- package/dist/runtime/subsystems/cache/cache.tokens.js +6 -7
- package/dist/runtime/subsystems/cache/cache.tokens.js.map +1 -1
- package/dist/runtime/subsystems/cache/index.js +20 -278
- package/dist/runtime/subsystems/cache/index.js.map +1 -1
- package/dist/runtime/subsystems/events/domain-events.schema.js +3 -72
- package/dist/runtime/subsystems/events/domain-events.schema.js.map +1 -1
- package/dist/runtime/subsystems/events/event-bus.drizzle-backend.js +9 -413
- package/dist/runtime/subsystems/events/event-bus.drizzle-backend.js.map +1 -1
- package/dist/runtime/subsystems/events/event-bus.memory-backend.js +7 -235
- package/dist/runtime/subsystems/events/event-bus.memory-backend.js.map +1 -1
- package/dist/runtime/subsystems/events/event-bus.redis-backend.js +8 -20
- package/dist/runtime/subsystems/events/event-bus.redis-backend.js.map +1 -1
- package/dist/runtime/subsystems/events/event-keyset-cursor.js +8 -30
- package/dist/runtime/subsystems/events/event-keyset-cursor.js.map +1 -1
- package/dist/runtime/subsystems/events/event-read.protocol.js +2 -0
- package/dist/runtime/subsystems/events/event-read.protocol.js.map +1 -1
- package/dist/runtime/subsystems/events/events-errors.js +4 -11
- package/dist/runtime/subsystems/events/events-errors.js.map +1 -1
- package/dist/runtime/subsystems/events/events.module.js +15 -949
- package/dist/runtime/subsystems/events/events.module.js.map +1 -1
- package/dist/runtime/subsystems/events/events.tokens.js +10 -11
- package/dist/runtime/subsystems/events/events.tokens.js.map +1 -1
- package/dist/runtime/subsystems/events/generated/bus.js +9 -240
- package/dist/runtime/subsystems/events/generated/bus.js.map +1 -1
- package/dist/runtime/subsystems/events/generated/index.js +23 -240
- package/dist/runtime/subsystems/events/generated/index.js.map +1 -1
- package/dist/runtime/subsystems/events/generated/registry.js +5 -82
- package/dist/runtime/subsystems/events/generated/registry.js.map +1 -1
- package/dist/runtime/subsystems/events/generated/schemas.js +12 -52
- package/dist/runtime/subsystems/events/generated/schemas.js.map +1 -1
- package/dist/runtime/subsystems/events/generated/types.js +1 -0
- package/dist/runtime/subsystems/events/index.js +32 -949
- package/dist/runtime/subsystems/events/index.js.map +1 -1
- package/dist/runtime/subsystems/index.js +171 -5912
- package/dist/runtime/subsystems/index.js.map +1 -1
- package/dist/runtime/subsystems/integration/build-change-source.js +6 -178
- package/dist/runtime/subsystems/integration/build-change-source.js.map +1 -1
- package/dist/runtime/subsystems/integration/deep-equal.differ.js +4 -109
- package/dist/runtime/subsystems/integration/deep-equal.differ.js.map +1 -1
- package/dist/runtime/subsystems/integration/detection-config.schema.js +11 -78
- package/dist/runtime/subsystems/integration/detection-config.schema.js.map +1 -1
- package/dist/runtime/subsystems/integration/entity-change-source-registry.memory.js +5 -30
- package/dist/runtime/subsystems/integration/entity-change-source-registry.memory.js.map +1 -1
- package/dist/runtime/subsystems/integration/entity-change-source-registry.protocol.js +4 -9
- package/dist/runtime/subsystems/integration/entity-change-source-registry.protocol.js.map +1 -1
- package/dist/runtime/subsystems/integration/execute-integration.use-case.js +6 -239
- package/dist/runtime/subsystems/integration/execute-integration.use-case.js.map +1 -1
- package/dist/runtime/subsystems/integration/incremental-read.js +5 -144
- package/dist/runtime/subsystems/integration/incremental-read.js.map +1 -1
- package/dist/runtime/subsystems/integration/index.js +83 -1352
- package/dist/runtime/subsystems/integration/index.js.map +1 -1
- package/dist/runtime/subsystems/integration/integration-audit.schema.js +10 -155
- package/dist/runtime/subsystems/integration/integration-audit.schema.js.map +1 -1
- package/dist/runtime/subsystems/integration/integration-cursor-store.drizzle-backend.js +7 -270
- package/dist/runtime/subsystems/integration/integration-cursor-store.drizzle-backend.js.map +1 -1
- package/dist/runtime/subsystems/integration/integration-cursor-store.memory-backend.js +4 -65
- package/dist/runtime/subsystems/integration/integration-cursor-store.memory-backend.js.map +1 -1
- package/dist/runtime/subsystems/integration/integration-errors.js +5 -15
- package/dist/runtime/subsystems/integration/integration-errors.js.map +1 -1
- package/dist/runtime/subsystems/integration/integration-field-diff.protocol.js +5 -7
- package/dist/runtime/subsystems/integration/integration-field-diff.protocol.js.map +1 -1
- package/dist/runtime/subsystems/integration/integration-run-recorder.drizzle-backend.js +8 -303
- package/dist/runtime/subsystems/integration/integration-run-recorder.drizzle-backend.js.map +1 -1
- package/dist/runtime/subsystems/integration/integration-run-recorder.memory-backend.js +5 -125
- package/dist/runtime/subsystems/integration/integration-run-recorder.memory-backend.js.map +1 -1
- package/dist/runtime/subsystems/integration/integration.module.js +13 -700
- package/dist/runtime/subsystems/integration/integration.module.js.map +1 -1
- package/dist/runtime/subsystems/integration/integration.tokens.js +11 -9
- package/dist/runtime/subsystems/integration/integration.tokens.js.map +1 -1
- package/dist/runtime/subsystems/integration/loopback.middleware.js +4 -16
- package/dist/runtime/subsystems/integration/loopback.middleware.js.map +1 -1
- package/dist/runtime/subsystems/integration/poll-change-source.js +4 -89
- package/dist/runtime/subsystems/integration/poll-change-source.js.map +1 -1
- package/dist/runtime/subsystems/integration/webhook-change-source.js +4 -70
- package/dist/runtime/subsystems/integration/webhook-change-source.js.map +1 -1
- package/dist/runtime/subsystems/jobs/bullmq.config.js +9 -140
- package/dist/runtime/subsystems/jobs/bullmq.config.js.map +1 -1
- package/dist/runtime/subsystems/jobs/index.js +88 -2691
- package/dist/runtime/subsystems/jobs/index.js.map +1 -1
- package/dist/runtime/subsystems/jobs/job-handler.base.js +10 -49
- package/dist/runtime/subsystems/jobs/job-handler.base.js.map +1 -1
- package/dist/runtime/subsystems/jobs/job-orchestration.schema.js +13 -152
- package/dist/runtime/subsystems/jobs/job-orchestration.schema.js.map +1 -1
- package/dist/runtime/subsystems/jobs/job-orchestrator.bullmq-backend.js +36 -699
- package/dist/runtime/subsystems/jobs/job-orchestrator.bullmq-backend.js.map +1 -1
- package/dist/runtime/subsystems/jobs/job-orchestrator.drizzle-backend.js +10 -564
- package/dist/runtime/subsystems/jobs/job-orchestrator.drizzle-backend.js.map +1 -1
- package/dist/runtime/subsystems/jobs/job-orchestrator.memory-backend.js +10 -824
- package/dist/runtime/subsystems/jobs/job-orchestrator.memory-backend.js.map +1 -1
- package/dist/runtime/subsystems/jobs/job-run-keyset-cursor.js +9 -51
- package/dist/runtime/subsystems/jobs/job-run-keyset-cursor.js.map +1 -1
- package/dist/runtime/subsystems/jobs/job-run-service.drizzle-backend.js +9 -416
- package/dist/runtime/subsystems/jobs/job-run-service.drizzle-backend.js.map +1 -1
- package/dist/runtime/subsystems/jobs/job-run-service.memory-backend.js +9 -290
- package/dist/runtime/subsystems/jobs/job-run-service.memory-backend.js.map +1 -1
- package/dist/runtime/subsystems/jobs/job-step-service.drizzle-backend.js +5 -213
- package/dist/runtime/subsystems/jobs/job-step-service.drizzle-backend.js.map +1 -1
- package/dist/runtime/subsystems/jobs/job-step-service.memory-backend.js +5 -131
- package/dist/runtime/subsystems/jobs/job-step-service.memory-backend.js.map +1 -1
- package/dist/runtime/subsystems/jobs/job-worker.bullmq-backend.js +9 -175
- package/dist/runtime/subsystems/jobs/job-worker.bullmq-backend.js.map +1 -1
- package/dist/runtime/subsystems/jobs/job-worker.js +14 -613
- package/dist/runtime/subsystems/jobs/job-worker.js.map +1 -1
- package/dist/runtime/subsystems/jobs/job-worker.module.js +23 -2647
- package/dist/runtime/subsystems/jobs/job-worker.module.js.map +1 -1
- package/dist/runtime/subsystems/jobs/jobs-domain.module.js +19 -1897
- package/dist/runtime/subsystems/jobs/jobs-domain.module.js.map +1 -1
- package/dist/runtime/subsystems/jobs/jobs-domain.tokens.js +8 -9
- package/dist/runtime/subsystems/jobs/jobs-domain.tokens.js.map +1 -1
- package/dist/runtime/subsystems/jobs/jobs-errors.js +10 -78
- package/dist/runtime/subsystems/jobs/jobs-errors.js.map +1 -1
- package/dist/runtime/subsystems/jobs/memory-job-store.js +4 -15
- package/dist/runtime/subsystems/jobs/memory-job-store.js.map +1 -1
- package/dist/runtime/subsystems/jobs/pool-config.loader.js +9 -124
- package/dist/runtime/subsystems/jobs/pool-config.loader.js.map +1 -1
- package/dist/runtime/subsystems/observability/index.js +21 -310
- package/dist/runtime/subsystems/observability/index.js.map +1 -1
- package/dist/runtime/subsystems/observability/observability-errors.js +4 -9
- package/dist/runtime/subsystems/observability/observability-errors.js.map +1 -1
- package/dist/runtime/subsystems/observability/observability.module.js +11 -300
- package/dist/runtime/subsystems/observability/observability.module.js.map +1 -1
- package/dist/runtime/subsystems/observability/observability.service.js +9 -197
- package/dist/runtime/subsystems/observability/observability.service.js.map +1 -1
- package/dist/runtime/subsystems/observability/observability.tokens.js +5 -3
- package/dist/runtime/subsystems/observability/observability.tokens.js.map +1 -1
- package/dist/runtime/subsystems/observability/reporters/bridge-metrics.reporter.js +4 -84
- package/dist/runtime/subsystems/observability/reporters/bridge-metrics.reporter.js.map +1 -1
- package/dist/runtime/subsystems/observability/reporters/index.js +5 -84
- package/dist/runtime/subsystems/observability/reporters/index.js.map +1 -1
- package/dist/runtime/subsystems/storage/index.js +15 -200
- package/dist/runtime/subsystems/storage/index.js.map +1 -1
- package/dist/runtime/subsystems/storage/storage.local-backend.js +4 -103
- package/dist/runtime/subsystems/storage/storage.local-backend.js.map +1 -1
- package/dist/runtime/subsystems/storage/storage.memory-backend.js +5 -68
- package/dist/runtime/subsystems/storage/storage.memory-backend.js.map +1 -1
- package/dist/runtime/subsystems/storage/storage.module.js +8 -200
- package/dist/runtime/subsystems/storage/storage.module.js.map +1 -1
- package/dist/runtime/subsystems/storage/storage.tokens.js +5 -6
- package/dist/runtime/subsystems/storage/storage.tokens.js.map +1 -1
- package/dist/runtime/subsystems/storage/storage.utils.js +4 -14
- package/dist/runtime/subsystems/storage/storage.utils.js.map +1 -1
- package/dist/runtime/subsystems/token-key.js +5 -3
- package/dist/runtime/subsystems/token-key.js.map +1 -1
- package/dist/src/cli/index.js +637 -5454
- package/dist/src/cli/index.js.map +1 -1
- package/dist/src/index.js +68 -4170
- package/dist/src/index.js.map +1 -1
- package/package.json +1 -1
- package/runtime/subsystems/bridge/bridge-outbox-drain-hook.ts +44 -21
- package/runtime/subsystems/jobs/job-worker.ts +17 -11
|
@@ -1,617 +1,18 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6
|
-
if (decorator = decorators[i])
|
|
7
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8
|
-
if (kind && result) __defProp(target, key, result);
|
|
9
|
-
return result;
|
|
10
|
-
};
|
|
11
|
-
var __decorateParam = (index2, decorator) => (target, key) => decorator(target, key, index2);
|
|
12
|
-
|
|
13
|
-
// runtime/subsystems/jobs/job-worker.ts
|
|
14
|
-
import { Inject, Injectable, Logger } from "@nestjs/common";
|
|
15
|
-
import { and, asc, desc, eq, inArray, lt, lte, sql as sql2 } from "drizzle-orm";
|
|
16
|
-
|
|
17
|
-
// runtime/subsystems/token-key.ts
|
|
18
|
-
var PKG = "@pattern-stack/codegen";
|
|
19
|
-
var tokenKey = (area, name) => `${PKG}.${area}.${name}`;
|
|
20
|
-
|
|
21
|
-
// runtime/constants/tokens.ts
|
|
22
|
-
var DRIZZLE = "DRIZZLE";
|
|
23
|
-
|
|
24
|
-
// runtime/subsystems/jobs/job-orchestration.schema.ts
|
|
25
1
|
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
import
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"waiting",
|
|
41
|
-
"completed",
|
|
42
|
-
"failed",
|
|
43
|
-
"timed_out",
|
|
44
|
-
"canceled"
|
|
45
|
-
]);
|
|
46
|
-
var jobStepKindEnum = pgEnum("job_step_kind", ["task"]);
|
|
47
|
-
var jobStepStatusEnum = pgEnum("job_step_status", [
|
|
48
|
-
"pending",
|
|
49
|
-
"running",
|
|
50
|
-
"completed",
|
|
51
|
-
"failed",
|
|
52
|
-
"skipped"
|
|
53
|
-
]);
|
|
54
|
-
var collisionModeEnum = pgEnum("job_collision_mode", [
|
|
55
|
-
"queue",
|
|
56
|
-
"reject",
|
|
57
|
-
"replace"
|
|
58
|
-
]);
|
|
59
|
-
var replayFromEnum = pgEnum("job_replay_from", [
|
|
60
|
-
"scratch",
|
|
61
|
-
"last_step",
|
|
62
|
-
"last_checkpoint"
|
|
63
|
-
]);
|
|
64
|
-
var parentClosePolicyEnum = pgEnum("job_parent_close_policy", [
|
|
65
|
-
"terminate",
|
|
66
|
-
"cancel",
|
|
67
|
-
"abandon"
|
|
68
|
-
]);
|
|
69
|
-
var waitKindEnum = pgEnum("job_wait_kind", ["signal"]);
|
|
70
|
-
var triggerSourceEnum = pgEnum("job_trigger_source", [
|
|
71
|
-
"manual",
|
|
72
|
-
"schedule",
|
|
73
|
-
"event",
|
|
74
|
-
"parent"
|
|
75
|
-
]);
|
|
76
|
-
var jobs = pgTable("job", {
|
|
77
|
-
type: text("type").primaryKey(),
|
|
78
|
-
version: integer("version").notNull().default(1),
|
|
79
|
-
pool: text("pool").notNull(),
|
|
80
|
-
scopeEntityType: text("scope_entity_type"),
|
|
81
|
-
retryPolicy: jsonb("retry_policy").notNull().$type(),
|
|
82
|
-
timeoutMs: integer("timeout_ms"),
|
|
83
|
-
concurrencyKeyTemplate: text("concurrency_key_template"),
|
|
84
|
-
collisionMode: collisionModeEnum("collision_mode").notNull().default("queue"),
|
|
85
|
-
dedupeKeyTemplate: text("dedupe_key_template"),
|
|
86
|
-
dedupeWindowMs: integer("dedupe_window_ms"),
|
|
87
|
-
priorityDefault: integer("priority_default").notNull().default(0),
|
|
88
|
-
replayFrom: replayFromEnum("replay_from").notNull().default("last_checkpoint"),
|
|
89
|
-
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
90
|
-
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow()
|
|
91
|
-
});
|
|
92
|
-
var jobRuns = pgTable(
|
|
93
|
-
"job_run",
|
|
94
|
-
{
|
|
95
|
-
id: uuid("id").primaryKey().defaultRandom(),
|
|
96
|
-
jobType: text("job_type").notNull().references(() => jobs.type),
|
|
97
|
-
jobVersion: integer("job_version").notNull(),
|
|
98
|
-
parentRunId: uuid("parent_run_id").references(() => jobRuns.id),
|
|
99
|
-
/**
|
|
100
|
-
* Service generates `id` client-side via randomUUID() and sets
|
|
101
|
-
* root_run_id = id for root runs (single INSERT, no self-FK race).
|
|
102
|
-
*/
|
|
103
|
-
rootRunId: uuid("root_run_id").notNull(),
|
|
104
|
-
parentClosePolicy: parentClosePolicyEnum("parent_close_policy").notNull().default("terminate"),
|
|
105
|
-
scopeEntityType: text("scope_entity_type"),
|
|
106
|
-
scopeEntityId: text("scope_entity_id"),
|
|
107
|
-
tenantId: text("tenant_id"),
|
|
108
|
-
tags: jsonb("tags").notNull().default({}).$type(),
|
|
109
|
-
pool: text("pool").notNull(),
|
|
110
|
-
priority: integer("priority").notNull().default(0),
|
|
111
|
-
concurrencyKey: text("concurrency_key"),
|
|
112
|
-
dedupeKey: text("dedupe_key"),
|
|
113
|
-
status: jobRunStatusEnum("status").notNull().default("pending"),
|
|
114
|
-
input: jsonb("input").notNull().$type(),
|
|
115
|
-
output: jsonb("output").$type(),
|
|
116
|
-
error: jsonb("error").$type(),
|
|
117
|
-
triggerSource: triggerSourceEnum("trigger_source").notNull(),
|
|
118
|
-
triggerRef: text("trigger_ref"),
|
|
119
|
-
runAt: timestamp("run_at", { withTimezone: true }).notNull().defaultNow(),
|
|
120
|
-
startedAt: timestamp("started_at", { withTimezone: true }),
|
|
121
|
-
finishedAt: timestamp("finished_at", { withTimezone: true }),
|
|
122
|
-
claimedAt: timestamp("claimed_at", { withTimezone: true }),
|
|
123
|
-
attempts: integer("attempts").notNull().default(0),
|
|
124
|
-
// Phase 3 placeholder — see ADR-025
|
|
125
|
-
waitKind: waitKindEnum("wait_kind"),
|
|
126
|
-
// Phase 3 placeholder — see ADR-025
|
|
127
|
-
resumeToken: text("resume_token"),
|
|
128
|
-
// Phase 3 placeholder — see ADR-025
|
|
129
|
-
waitDeadline: timestamp("wait_deadline", { withTimezone: true }),
|
|
130
|
-
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
131
|
-
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow()
|
|
132
|
-
},
|
|
133
|
-
(t) => ({
|
|
134
|
-
/** Claim query: ORDER BY priority DESC, run_at ASC. */
|
|
135
|
-
idxJobRunClaim: index("idx_job_run_claim").on(t.status, t.pool, t.runAt),
|
|
136
|
-
/** Tree traversal / cascade cancel. */
|
|
137
|
-
idxJobRunRoot: index("idx_job_run_root").on(t.rootRunId),
|
|
138
|
-
/** listForScope query. */
|
|
139
|
-
idxJobRunScope: index("idx_job_run_scope").on(t.scopeEntityType, t.scopeEntityId),
|
|
140
|
-
/** Idempotency collapse — partial index. */
|
|
141
|
-
idxJobRunDedupe: index("idx_job_run_dedupe").on(t.jobType, t.dedupeKey).where(sql`${t.dedupeKey} IS NOT NULL`),
|
|
142
|
-
/** Collision check — partial index. */
|
|
143
|
-
idxJobRunConcurrency: index("idx_job_run_concurrency").on(t.concurrencyKey).where(
|
|
144
|
-
sql`${t.concurrencyKey} IS NOT NULL AND ${t.status} IN ('pending','running')`
|
|
145
|
-
)
|
|
146
|
-
})
|
|
147
|
-
);
|
|
148
|
-
var jobSteps = pgTable(
|
|
149
|
-
"job_step",
|
|
150
|
-
{
|
|
151
|
-
id: uuid("id").primaryKey().defaultRandom(),
|
|
152
|
-
jobRunId: uuid("job_run_id").notNull().references(() => jobRuns.id),
|
|
153
|
-
stepId: text("step_id").notNull(),
|
|
154
|
-
kind: jobStepKindEnum("kind").notNull().default("task"),
|
|
155
|
-
/**
|
|
156
|
-
* Monotonic within run. integer (max ~2B per run) is sufficient —
|
|
157
|
-
* downgraded from ADR-022's bigint; revisit only if a single run
|
|
158
|
-
* ever exceeds 2 billion steps.
|
|
159
|
-
*/
|
|
160
|
-
seq: integer("seq").notNull(),
|
|
161
|
-
status: jobStepStatusEnum("status").notNull().default("pending"),
|
|
162
|
-
input: jsonb("input").$type(),
|
|
163
|
-
/** Memoised on success for replay. */
|
|
164
|
-
output: jsonb("output").$type(),
|
|
165
|
-
error: jsonb("error").$type(),
|
|
166
|
-
attempts: integer("attempts").notNull().default(0),
|
|
167
|
-
startedAt: timestamp("started_at", { withTimezone: true }),
|
|
168
|
-
finishedAt: timestamp("finished_at", { withTimezone: true })
|
|
169
|
-
},
|
|
170
|
-
(t) => ({
|
|
171
|
-
/** No duplicate step IDs per run. */
|
|
172
|
-
idxJobStepRunStep: uniqueIndex("idx_job_step_run_step").on(t.jobRunId, t.stepId),
|
|
173
|
-
/** Ordered timeline reads. */
|
|
174
|
-
idxJobStepTimeline: index("idx_job_step_timeline").on(t.jobRunId, t.seq)
|
|
175
|
-
})
|
|
176
|
-
);
|
|
177
|
-
|
|
178
|
-
// runtime/subsystems/jobs/jobs-domain.tokens.ts
|
|
179
|
-
var JOB_ORCHESTRATOR = Symbol.for(tokenKey("jobs", "orchestrator"));
|
|
180
|
-
var JOB_RUN_SERVICE = Symbol.for(tokenKey("jobs", "run-service"));
|
|
181
|
-
var JOB_STEP_SERVICE = Symbol.for(tokenKey("jobs", "step-service"));
|
|
182
|
-
var JOBS_MULTI_TENANT = Symbol.for(tokenKey("jobs", "multi-tenant"));
|
|
183
|
-
|
|
184
|
-
// runtime/subsystems/jobs/job-handler.base.ts
|
|
185
|
-
var JOB_HANDLER_REGISTRY = /* @__PURE__ */ new Map();
|
|
186
|
-
var JOB_HANDLER_METADATA_KEY = Symbol.for(tokenKey("jobs", "handler-metadata"));
|
|
187
|
-
var HandlerRegistry;
|
|
188
|
-
((HandlerRegistry2) => {
|
|
189
|
-
function getAll() {
|
|
190
|
-
return Array.from(JOB_HANDLER_REGISTRY.values());
|
|
191
|
-
}
|
|
192
|
-
HandlerRegistry2.getAll = getAll;
|
|
193
|
-
function get(type) {
|
|
194
|
-
return JOB_HANDLER_REGISTRY.get(type);
|
|
195
|
-
}
|
|
196
|
-
HandlerRegistry2.get = get;
|
|
197
|
-
})(HandlerRegistry || (HandlerRegistry = {}));
|
|
198
|
-
|
|
199
|
-
// runtime/subsystems/jobs/job-worker.ts
|
|
200
|
-
var JOB_WORKER_OPTIONS = Symbol.for(tokenKey("jobs", "worker-options"));
|
|
201
|
-
var DEFAULT_POLL_INTERVAL_MS = 1e3;
|
|
202
|
-
var DEFAULT_STALE_SWEEPER_INTERVAL_MS = 6e4;
|
|
203
|
-
var DEFAULT_STALE_THRESHOLD_MS = 5 * 6e4;
|
|
204
|
-
var DEFAULT_SHUTDOWN_TIMEOUT_MS = 3e4;
|
|
205
|
-
var TERMINAL_STATUSES = [
|
|
206
|
-
"completed",
|
|
207
|
-
"failed",
|
|
208
|
-
"timed_out",
|
|
209
|
-
"canceled"
|
|
210
|
-
];
|
|
211
|
-
function computeBackoff(policy, attempts) {
|
|
212
|
-
const base = Math.max(policy.baseMs, 0);
|
|
213
|
-
if (policy.backoff === "fixed") {
|
|
214
|
-
return base;
|
|
215
|
-
}
|
|
216
|
-
const exponent = Math.max(attempts - 1, 0);
|
|
217
|
-
if (exponent >= 53) return Number.MAX_SAFE_INTEGER;
|
|
218
|
-
const raw = base * Math.pow(2, exponent);
|
|
219
|
-
if (!Number.isFinite(raw) || raw >= Number.MAX_SAFE_INTEGER) {
|
|
220
|
-
return Number.MAX_SAFE_INTEGER;
|
|
221
|
-
}
|
|
222
|
-
return raw;
|
|
223
|
-
}
|
|
224
|
-
function classifyError(err, policy, currentAttempts) {
|
|
225
|
-
if (!policy) return "fail";
|
|
226
|
-
const errObj = err;
|
|
227
|
-
const name = errObj?.name;
|
|
228
|
-
const code = errObj?.code;
|
|
229
|
-
const nonRetryable = policy.nonRetryableErrors ?? [];
|
|
230
|
-
if (nonRetryable.some((n) => n === name || n === code)) return "fail";
|
|
231
|
-
if (currentAttempts + 1 >= policy.attempts) return "fail";
|
|
232
|
-
return "retry";
|
|
233
|
-
}
|
|
234
|
-
function buildClaimQuery(db, pool) {
|
|
235
|
-
return db.select({ id: jobRuns.id }).from(jobRuns).where(
|
|
236
|
-
and(
|
|
237
|
-
eq(jobRuns.status, "pending"),
|
|
238
|
-
eq(jobRuns.pool, pool),
|
|
239
|
-
lte(jobRuns.runAt, /* @__PURE__ */ new Date())
|
|
240
|
-
)
|
|
241
|
-
).orderBy(desc(jobRuns.priority), asc(jobRuns.runAt)).limit(1).for("update", { skipLocked: true });
|
|
242
|
-
}
|
|
243
|
-
function buildStaleSweepQuery(db, staleThresholdMs) {
|
|
244
|
-
const threshold = new Date(Date.now() - staleThresholdMs);
|
|
245
|
-
return db.select({ id: jobRuns.id }).from(jobRuns).where(
|
|
246
|
-
and(
|
|
247
|
-
eq(jobRuns.status, "running"),
|
|
248
|
-
lt(jobRuns.claimedAt, threshold)
|
|
249
|
-
)
|
|
250
|
-
).for("update", { skipLocked: true });
|
|
251
|
-
}
|
|
252
|
-
function serialiseError(err, attempt, retryable) {
|
|
253
|
-
const e = err;
|
|
254
|
-
return {
|
|
255
|
-
message: e?.message ?? String(err),
|
|
256
|
-
stack: e?.stack,
|
|
257
|
-
retryable,
|
|
258
|
-
attempt
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
|
-
var JobWorker = class {
|
|
262
|
-
constructor(db, orchestrator, runService, stepService, options, moduleRef) {
|
|
263
|
-
this.db = db;
|
|
264
|
-
this.orchestrator = orchestrator;
|
|
265
|
-
this.runService = runService;
|
|
266
|
-
this.stepService = stepService;
|
|
267
|
-
this.options = options;
|
|
268
|
-
this.moduleRef = moduleRef;
|
|
269
|
-
this.pollIntervalMs = options.pollIntervalMs ?? DEFAULT_POLL_INTERVAL_MS;
|
|
270
|
-
this.staleSweeperIntervalMs = options.staleSweeperIntervalMs ?? DEFAULT_STALE_SWEEPER_INTERVAL_MS;
|
|
271
|
-
this.staleThresholdMs = options.staleThresholdMs ?? DEFAULT_STALE_THRESHOLD_MS;
|
|
272
|
-
this.shutdownTimeoutMs = options.shutdownTimeoutMs ?? DEFAULT_SHUTDOWN_TIMEOUT_MS;
|
|
273
|
-
this.sigtermHandler = () => {
|
|
274
|
-
if (this.sigtermHandled) return;
|
|
275
|
-
this.sigtermHandled = true;
|
|
276
|
-
void this.onModuleDestroy();
|
|
277
|
-
};
|
|
278
|
-
void this.runService;
|
|
279
|
-
}
|
|
280
|
-
db;
|
|
281
|
-
orchestrator;
|
|
282
|
-
runService;
|
|
283
|
-
stepService;
|
|
284
|
-
options;
|
|
285
|
-
moduleRef;
|
|
286
|
-
logger = new Logger(JobWorker.name);
|
|
287
|
-
shuttingDown = false;
|
|
288
|
-
inFlight = /* @__PURE__ */ new Set();
|
|
289
|
-
pollTimer = null;
|
|
290
|
-
sweeperTimer = null;
|
|
291
|
-
sigtermHandled = false;
|
|
292
|
-
sigtermHandler;
|
|
293
|
-
pollIntervalMs;
|
|
294
|
-
staleSweeperIntervalMs;
|
|
295
|
-
staleThresholdMs;
|
|
296
|
-
shutdownTimeoutMs;
|
|
297
|
-
// ============================================================================
|
|
298
|
-
// Lifecycle
|
|
299
|
-
// ============================================================================
|
|
300
|
-
onModuleInit() {
|
|
301
|
-
this.pollTimer = setInterval(() => {
|
|
302
|
-
void this.pollAndProcess();
|
|
303
|
-
}, this.pollIntervalMs);
|
|
304
|
-
this.sweeperTimer = setInterval(() => {
|
|
305
|
-
void this.sweepStaleClaims();
|
|
306
|
-
}, this.staleSweeperIntervalMs);
|
|
307
|
-
process.on("SIGTERM", this.sigtermHandler);
|
|
308
|
-
}
|
|
309
|
-
async onModuleDestroy() {
|
|
310
|
-
if (this.shuttingDown) {
|
|
311
|
-
await this.drainInFlight();
|
|
312
|
-
return;
|
|
313
|
-
}
|
|
314
|
-
this.shuttingDown = true;
|
|
315
|
-
if (this.pollTimer) {
|
|
316
|
-
clearInterval(this.pollTimer);
|
|
317
|
-
this.pollTimer = null;
|
|
318
|
-
}
|
|
319
|
-
if (this.sweeperTimer) {
|
|
320
|
-
clearInterval(this.sweeperTimer);
|
|
321
|
-
this.sweeperTimer = null;
|
|
322
|
-
}
|
|
323
|
-
process.removeListener("SIGTERM", this.sigtermHandler);
|
|
324
|
-
await this.drainInFlight();
|
|
325
|
-
try {
|
|
326
|
-
await this.db.update(jobRuns).set({ status: "pending", claimedAt: null, startedAt: null }).where(
|
|
327
|
-
and(eq(jobRuns.status, "running"), eq(jobRuns.pool, this.options.pool))
|
|
328
|
-
);
|
|
329
|
-
} catch (err) {
|
|
330
|
-
this.logger.error(`shutdown reset failed: ${err.message}`);
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
async drainInFlight() {
|
|
334
|
-
if (this.inFlight.size === 0) return;
|
|
335
|
-
const timeout = new Promise(
|
|
336
|
-
(resolve) => setTimeout(resolve, this.shutdownTimeoutMs)
|
|
337
|
-
);
|
|
338
|
-
await Promise.race([
|
|
339
|
-
Promise.allSettled([...this.inFlight]).then(() => void 0),
|
|
340
|
-
timeout
|
|
341
|
-
]);
|
|
342
|
-
}
|
|
343
|
-
// ============================================================================
|
|
344
|
-
// Poll loop
|
|
345
|
-
// ============================================================================
|
|
346
|
-
async pollAndProcess() {
|
|
347
|
-
if (this.shuttingDown) return;
|
|
348
|
-
if (this.inFlight.size >= this.options.concurrency) return;
|
|
349
|
-
let claimed;
|
|
350
|
-
try {
|
|
351
|
-
claimed = await this.claimNext(this.options.pool);
|
|
352
|
-
} catch (err) {
|
|
353
|
-
this.logger.error(`claimNext failed: ${err.message}`);
|
|
354
|
-
return;
|
|
355
|
-
}
|
|
356
|
-
if (!claimed) return;
|
|
357
|
-
const run = claimed;
|
|
358
|
-
const promise = this.processRun(run).catch((err) => {
|
|
359
|
-
this.logger.error(
|
|
360
|
-
`processRun(${run.id}) unhandled: ${err.message}`
|
|
361
|
-
);
|
|
362
|
-
});
|
|
363
|
-
this.inFlight.add(promise);
|
|
364
|
-
promise.finally(() => {
|
|
365
|
-
this.inFlight.delete(promise);
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
/**
|
|
369
|
-
* Claim the next runnable row from the pool. Transaction ensures the
|
|
370
|
-
* select-candidate + update-to-running pair is atomic; FOR UPDATE SKIP
|
|
371
|
-
* LOCKED lets multiple workers share the table without serialising.
|
|
372
|
-
*/
|
|
373
|
-
async claimNext(pool) {
|
|
374
|
-
return this.db.transaction(async (tx) => {
|
|
375
|
-
const candidates = await tx.select({ id: jobRuns.id }).from(jobRuns).where(
|
|
376
|
-
and(
|
|
377
|
-
eq(jobRuns.status, "pending"),
|
|
378
|
-
eq(jobRuns.pool, pool),
|
|
379
|
-
lte(jobRuns.runAt, /* @__PURE__ */ new Date())
|
|
380
|
-
)
|
|
381
|
-
).orderBy(desc(jobRuns.priority), asc(jobRuns.runAt)).limit(1).for("update", { skipLocked: true });
|
|
382
|
-
const candidate = candidates[0];
|
|
383
|
-
if (!candidate) return null;
|
|
384
|
-
const [claimed] = await tx.update(jobRuns).set({
|
|
385
|
-
status: "running",
|
|
386
|
-
claimedAt: /* @__PURE__ */ new Date(),
|
|
387
|
-
startedAt: /* @__PURE__ */ new Date(),
|
|
388
|
-
updatedAt: /* @__PURE__ */ new Date()
|
|
389
|
-
}).where(eq(jobRuns.id, candidate.id)).returning();
|
|
390
|
-
return claimed ?? null;
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
// ============================================================================
|
|
394
|
-
// Stale claim sweeper
|
|
395
|
-
// ============================================================================
|
|
396
|
-
/**
|
|
397
|
-
* Release rows whose `claimed_at` is older than the threshold. Safe to
|
|
398
|
-
* run concurrently across workers — the two-phase tx (select-for-update
|
|
399
|
-
* then update) guarantees each stranded row is only reset once.
|
|
400
|
-
*/
|
|
401
|
-
async sweepStaleClaims() {
|
|
402
|
-
if (this.shuttingDown) return;
|
|
403
|
-
try {
|
|
404
|
-
await this.db.transaction(async (tx) => {
|
|
405
|
-
const threshold = new Date(Date.now() - this.staleThresholdMs);
|
|
406
|
-
const stale = await tx.select({ id: jobRuns.id }).from(jobRuns).where(
|
|
407
|
-
and(eq(jobRuns.status, "running"), lt(jobRuns.claimedAt, threshold))
|
|
408
|
-
).for("update", { skipLocked: true });
|
|
409
|
-
if (stale.length === 0) return;
|
|
410
|
-
const ids = stale.map((r) => r.id);
|
|
411
|
-
await tx.update(jobRuns).set({ status: "pending", claimedAt: null, startedAt: null }).where(inArray(jobRuns.id, ids));
|
|
412
|
-
for (const id of ids) {
|
|
413
|
-
this.logger.warn(`Recovered stale claim on run ${id}`);
|
|
414
|
-
}
|
|
415
|
-
});
|
|
416
|
-
} catch (err) {
|
|
417
|
-
this.logger.error(`sweepStaleClaims failed: ${err.message}`);
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
// ============================================================================
|
|
421
|
-
// processRun
|
|
422
|
-
// ============================================================================
|
|
423
|
-
async processRun(claimed) {
|
|
424
|
-
const registryEntry = JOB_HANDLER_REGISTRY.get(claimed.jobType);
|
|
425
|
-
if (!registryEntry) {
|
|
426
|
-
this.logger.error(
|
|
427
|
-
`No handler registered for jobType='${claimed.jobType}' (run ${claimed.id})`
|
|
428
|
-
);
|
|
429
|
-
await this.markFailed(
|
|
430
|
-
claimed,
|
|
431
|
-
new Error(`No handler registered for jobType='${claimed.jobType}'`),
|
|
432
|
-
/*finalAttempts*/
|
|
433
|
-
(claimed.attempts ?? 0) + 1
|
|
434
|
-
);
|
|
435
|
-
return;
|
|
436
|
-
}
|
|
437
|
-
if (claimed.concurrencyKey) {
|
|
438
|
-
const inflight = await this.db.select({ id: jobRuns.id }).from(jobRuns).where(
|
|
439
|
-
and(
|
|
440
|
-
eq(jobRuns.concurrencyKey, claimed.concurrencyKey),
|
|
441
|
-
eq(jobRuns.status, "running")
|
|
442
|
-
)
|
|
443
|
-
);
|
|
444
|
-
const other = inflight.find((r) => r.id !== claimed.id);
|
|
445
|
-
if (other) {
|
|
446
|
-
await this.db.update(jobRuns).set({
|
|
447
|
-
status: "pending",
|
|
448
|
-
claimedAt: null,
|
|
449
|
-
startedAt: null,
|
|
450
|
-
updatedAt: /* @__PURE__ */ new Date()
|
|
451
|
-
}).where(eq(jobRuns.id, claimed.id));
|
|
452
|
-
return;
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
const meta = registryEntry.meta;
|
|
456
|
-
const HandlerClass = registryEntry.handlerClass;
|
|
457
|
-
const handler = this.moduleRef.get(
|
|
458
|
-
HandlerClass,
|
|
459
|
-
{ strict: false }
|
|
460
|
-
);
|
|
461
|
-
const ctx = {
|
|
462
|
-
input: claimed.input,
|
|
463
|
-
run: claimed,
|
|
464
|
-
step: this.makeStepFn(claimed),
|
|
465
|
-
spawnChild: this.makeSpawnFn(claimed),
|
|
466
|
-
logger: new Logger(`JobRun:${claimed.id}`)
|
|
467
|
-
};
|
|
468
|
-
const attemptsBefore = claimed.attempts ?? 0;
|
|
469
|
-
try {
|
|
470
|
-
const output = await handler.run(ctx);
|
|
471
|
-
await this.db.update(jobRuns).set({
|
|
472
|
-
status: "completed",
|
|
473
|
-
output: output ?? {},
|
|
474
|
-
finishedAt: /* @__PURE__ */ new Date(),
|
|
475
|
-
updatedAt: /* @__PURE__ */ new Date(),
|
|
476
|
-
attempts: attemptsBefore + 1
|
|
477
|
-
}).where(eq(jobRuns.id, claimed.id));
|
|
478
|
-
} catch (err) {
|
|
479
|
-
const policy = meta.retry;
|
|
480
|
-
const decision = classifyError(err, policy, attemptsBefore);
|
|
481
|
-
const nextAttempts = attemptsBefore + 1;
|
|
482
|
-
if (decision === "retry" && policy) {
|
|
483
|
-
const delay = computeBackoff(policy, nextAttempts);
|
|
484
|
-
await this.db.update(jobRuns).set({
|
|
485
|
-
status: "pending",
|
|
486
|
-
attempts: nextAttempts,
|
|
487
|
-
runAt: new Date(Date.now() + delay),
|
|
488
|
-
startedAt: null,
|
|
489
|
-
claimedAt: null,
|
|
490
|
-
error: serialiseError(err, nextAttempts, true),
|
|
491
|
-
updatedAt: /* @__PURE__ */ new Date()
|
|
492
|
-
}).where(eq(jobRuns.id, claimed.id));
|
|
493
|
-
} else {
|
|
494
|
-
await this.markFailed(claimed, err, nextAttempts);
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
async markFailed(claimed, err, finalAttempts) {
|
|
499
|
-
await this.db.update(jobRuns).set({
|
|
500
|
-
status: "failed",
|
|
501
|
-
attempts: finalAttempts,
|
|
502
|
-
finishedAt: /* @__PURE__ */ new Date(),
|
|
503
|
-
error: serialiseError(err, finalAttempts, false),
|
|
504
|
-
updatedAt: /* @__PURE__ */ new Date()
|
|
505
|
-
}).where(eq(jobRuns.id, claimed.id));
|
|
506
|
-
if (claimed.parentClosePolicy === "terminate") {
|
|
507
|
-
try {
|
|
508
|
-
await this.orchestrator.cancel(claimed.id, {
|
|
509
|
-
cascade: true,
|
|
510
|
-
reason: "parent-failed",
|
|
511
|
-
tenantId: claimed.tenantId
|
|
512
|
-
});
|
|
513
|
-
} catch (cascadeErr) {
|
|
514
|
-
this.logger.warn(
|
|
515
|
-
`cascade on failed run ${claimed.id}: ${cascadeErr.message}`
|
|
516
|
-
);
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
// ============================================================================
|
|
521
|
-
// ctx.step / ctx.spawnChild builders
|
|
522
|
-
// ============================================================================
|
|
523
|
-
makeStepFn(run) {
|
|
524
|
-
return async (stepId, fn, _opts) => {
|
|
525
|
-
void _opts;
|
|
526
|
-
const existing = await this.stepService.findStep(run.id, stepId);
|
|
527
|
-
if (existing?.status === "completed") {
|
|
528
|
-
return existing.output;
|
|
529
|
-
}
|
|
530
|
-
const seq = await this.nextStepSeq(run.id);
|
|
531
|
-
const startedAt = /* @__PURE__ */ new Date();
|
|
532
|
-
const nextAttempts = (existing?.attempts ?? 0) + 1;
|
|
533
|
-
await this.stepService.recordStep({
|
|
534
|
-
jobRunId: run.id,
|
|
535
|
-
stepId,
|
|
536
|
-
kind: "task",
|
|
537
|
-
seq,
|
|
538
|
-
status: "running",
|
|
539
|
-
startedAt,
|
|
540
|
-
attempts: nextAttempts
|
|
541
|
-
});
|
|
542
|
-
try {
|
|
543
|
-
const output = await fn();
|
|
544
|
-
await this.stepService.recordStep({
|
|
545
|
-
jobRunId: run.id,
|
|
546
|
-
stepId,
|
|
547
|
-
kind: "task",
|
|
548
|
-
seq,
|
|
549
|
-
status: "completed",
|
|
550
|
-
output,
|
|
551
|
-
finishedAt: /* @__PURE__ */ new Date(),
|
|
552
|
-
attempts: nextAttempts
|
|
553
|
-
});
|
|
554
|
-
return output;
|
|
555
|
-
} catch (err) {
|
|
556
|
-
await this.stepService.recordStep({
|
|
557
|
-
jobRunId: run.id,
|
|
558
|
-
stepId,
|
|
559
|
-
kind: "task",
|
|
560
|
-
seq,
|
|
561
|
-
status: "failed",
|
|
562
|
-
error: serialiseError(err, nextAttempts, false),
|
|
563
|
-
finishedAt: /* @__PURE__ */ new Date(),
|
|
564
|
-
attempts: nextAttempts
|
|
565
|
-
});
|
|
566
|
-
throw err;
|
|
567
|
-
}
|
|
568
|
-
};
|
|
569
|
-
}
|
|
570
|
-
makeSpawnFn(run) {
|
|
571
|
-
return async (type, input, opts) => {
|
|
572
|
-
return this.orchestrator.start(type, input, {
|
|
573
|
-
parentRunId: run.id,
|
|
574
|
-
parentClosePolicy: opts?.closePolicy,
|
|
575
|
-
runAt: opts?.runAt,
|
|
576
|
-
priority: opts?.priority,
|
|
577
|
-
tags: opts?.tags,
|
|
578
|
-
triggerSource: "parent",
|
|
579
|
-
triggerRef: run.id
|
|
580
|
-
});
|
|
581
|
-
};
|
|
582
|
-
}
|
|
583
|
-
/**
|
|
584
|
-
* Allocate the next `seq` for a given run. SELECT-max approach — runs
|
|
585
|
-
* typically have <100 steps so the scan is cheap, and correctness across
|
|
586
|
-
* retries is more important than the microseconds saved by an in-memory
|
|
587
|
-
* counter (which would drift if the worker crashes mid-run and another
|
|
588
|
-
* worker resumes via stale-claim sweep).
|
|
589
|
-
*/
|
|
590
|
-
async nextStepSeq(runId) {
|
|
591
|
-
const [row] = await this.db.execute(
|
|
592
|
-
sql2`SELECT COALESCE(MAX(seq), 0) + 1 AS next FROM job_step WHERE job_run_id = ${runId}`
|
|
593
|
-
);
|
|
594
|
-
const maybeRows = row?.rows;
|
|
595
|
-
if (Array.isArray(maybeRows) && maybeRows.length > 0) {
|
|
596
|
-
return Number(maybeRows[0].next ?? 1);
|
|
597
|
-
}
|
|
598
|
-
if (row && typeof row.next !== "undefined") {
|
|
599
|
-
return Number(row.next);
|
|
600
|
-
}
|
|
601
|
-
return 1;
|
|
602
|
-
}
|
|
603
|
-
// ============================================================================
|
|
604
|
-
// (suppress unused-import noise)
|
|
605
|
-
// ============================================================================
|
|
606
|
-
};
|
|
607
|
-
JobWorker = __decorateClass([
|
|
608
|
-
Injectable(),
|
|
609
|
-
__decorateParam(0, Inject(DRIZZLE)),
|
|
610
|
-
__decorateParam(1, Inject(JOB_ORCHESTRATOR)),
|
|
611
|
-
__decorateParam(2, Inject(JOB_RUN_SERVICE)),
|
|
612
|
-
__decorateParam(3, Inject(JOB_STEP_SERVICE)),
|
|
613
|
-
__decorateParam(4, Inject(JOB_WORKER_OPTIONS))
|
|
614
|
-
], JobWorker);
|
|
2
|
+
JOB_WORKER_OPTIONS,
|
|
3
|
+
JobWorker,
|
|
4
|
+
TERMINAL_STATUSES,
|
|
5
|
+
buildClaimQuery,
|
|
6
|
+
buildStaleSweepQuery,
|
|
7
|
+
classifyError,
|
|
8
|
+
computeBackoff
|
|
9
|
+
} from "../../../chunk-RC23QROE.js";
|
|
10
|
+
import "../../../chunk-CO6LUM72.js";
|
|
11
|
+
import "../../../chunk-BIO6F7YI.js";
|
|
12
|
+
import "../../../chunk-OKXZ63IA.js";
|
|
13
|
+
import "../../../chunk-GYGNEQSC.js";
|
|
14
|
+
import "../../../chunk-U64T4YZE.js";
|
|
15
|
+
import "../../../chunk-2E224ZSN.js";
|
|
615
16
|
export {
|
|
616
17
|
JOB_WORKER_OPTIONS,
|
|
617
18
|
JobWorker,
|