@adonis-agora/durable 1.0.0-rc.2 → 1.0.0-rc.21
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 +204 -0
- package/dist/assets/spa/assets/index-BgoNV3TR.css +1 -0
- package/dist/assets/spa/assets/index-DzXygyDm.js +57 -0
- package/dist/assets/spa/assets/index-DzXygyDm.js.map +1 -0
- package/dist/assets/spa/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
- package/dist/assets/spa/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
- package/dist/assets/spa/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
- package/dist/assets/spa/assets/jetbrains-mono-latin-500-normal-CJOVTJB7.woff +0 -0
- package/dist/assets/spa/assets/jetbrains-mono-latin-600-normal-BfsvjouI.woff +0 -0
- package/dist/assets/spa/assets/jetbrains-mono-latin-600-normal-C8RAYTDA.woff2 +0 -0
- package/dist/assets/spa/assets/sora-latin-400-normal-CRt88UEn.woff2 +0 -0
- package/dist/assets/spa/assets/sora-latin-400-normal-OW7qkl5a.woff +0 -0
- package/dist/assets/spa/assets/sora-latin-500-normal-01eiPEn0.woff2 +0 -0
- package/dist/assets/spa/assets/sora-latin-500-normal-w58xtEt9.woff +0 -0
- package/dist/assets/spa/assets/sora-latin-600-normal-1_7fyUAY.woff +0 -0
- package/dist/assets/spa/assets/sora-latin-600-normal-Cdg4DaK0.woff2 +0 -0
- package/dist/assets/spa/assets/sora-latin-700-normal-9waGdLWo.woff2 +0 -0
- package/dist/assets/spa/assets/sora-latin-700-normal-BKPfQAnC.woff +0 -0
- package/dist/assets/spa/index.html +2 -8
- package/dist/commands/agora_doctor.d.ts +23 -0
- package/dist/commands/agora_doctor.d.ts.map +1 -0
- package/dist/commands/agora_doctor.js +110 -0
- package/dist/commands/agora_doctor.js.map +1 -0
- package/dist/commands/durable_doctor.d.ts +8 -0
- package/dist/commands/durable_doctor.d.ts.map +1 -0
- package/dist/commands/durable_doctor.js +8 -0
- package/dist/commands/durable_doctor.js.map +1 -0
- package/dist/commands/durable_worker.d.ts +3 -3
- package/dist/commands/durable_worker.js +7 -7
- package/dist/commands/durable_worker.js.map +1 -1
- package/dist/commands/health.d.ts +12 -0
- package/dist/commands/health.d.ts.map +1 -0
- package/dist/commands/health.js +34 -0
- package/dist/commands/health.js.map +1 -0
- package/dist/commands/lifecycle_republish.d.ts +8 -9
- package/dist/commands/lifecycle_republish.d.ts.map +1 -1
- package/dist/commands/lifecycle_republish.js +29 -16
- package/dist/commands/lifecycle_republish.js.map +1 -1
- package/dist/commands/main.d.ts +25 -5
- package/dist/commands/main.d.ts.map +1 -1
- package/dist/commands/main.js +54 -7
- package/dist/commands/main.js.map +1 -1
- package/dist/commands/runs.d.ts +9 -16
- package/dist/commands/runs.d.ts.map +1 -1
- package/dist/commands/runs.js +60 -47
- package/dist/commands/runs.js.map +1 -1
- package/dist/commands/runs_bulk.d.ts +17 -0
- package/dist/commands/runs_bulk.d.ts.map +1 -0
- package/dist/commands/runs_bulk.js +76 -0
- package/dist/commands/runs_bulk.js.map +1 -0
- package/dist/commands/runs_cancel.d.ts +15 -0
- package/dist/commands/runs_cancel.d.ts.map +1 -0
- package/dist/commands/runs_cancel.js +39 -0
- package/dist/commands/runs_cancel.js.map +1 -0
- package/dist/commands/runs_continue.d.ts +12 -0
- package/dist/commands/runs_continue.d.ts.map +1 -0
- package/dist/commands/runs_continue.js +28 -0
- package/dist/commands/runs_continue.js.map +1 -0
- package/dist/commands/runs_event.d.ts +13 -0
- package/dist/commands/runs_event.d.ts.map +1 -0
- package/dist/commands/runs_event.js +28 -0
- package/dist/commands/runs_event.js.map +1 -0
- package/dist/commands/runs_fan.d.ts +16 -0
- package/dist/commands/runs_fan.d.ts.map +1 -0
- package/dist/commands/runs_fan.js +58 -0
- package/dist/commands/runs_fan.js.map +1 -0
- package/dist/commands/runs_redispatch.d.ts +14 -0
- package/dist/commands/runs_redispatch.d.ts.map +1 -0
- package/dist/commands/runs_redispatch.js +35 -0
- package/dist/commands/runs_redispatch.js.map +1 -0
- package/dist/commands/runs_replay.d.ts +14 -0
- package/dist/commands/runs_replay.d.ts.map +1 -0
- package/dist/commands/runs_replay.js +38 -0
- package/dist/commands/runs_replay.js.map +1 -0
- package/dist/commands/runs_retry.d.ts +13 -0
- package/dist/commands/runs_retry.d.ts.map +1 -0
- package/dist/commands/runs_retry.js +29 -0
- package/dist/commands/runs_retry.js.map +1 -0
- package/dist/commands/runs_show.d.ts +14 -0
- package/dist/commands/runs_show.d.ts.map +1 -0
- package/dist/commands/runs_show.js +96 -0
- package/dist/commands/runs_show.js.map +1 -0
- package/dist/commands/runs_signal.d.ts +17 -0
- package/dist/commands/runs_signal.d.ts.map +1 -0
- package/dist/commands/runs_signal.js +49 -0
- package/dist/commands/runs_signal.js.map +1 -0
- package/dist/commands/runs_update.d.ts +15 -0
- package/dist/commands/runs_update.d.ts.map +1 -0
- package/dist/commands/runs_update.js +39 -0
- package/dist/commands/runs_update.js.map +1 -0
- package/dist/commands/runs_values.d.ts +15 -0
- package/dist/commands/runs_values.d.ts.map +1 -0
- package/dist/commands/runs_values.js +45 -0
- package/dist/commands/runs_values.js.map +1 -0
- package/dist/commands/schedules.d.ts +18 -0
- package/dist/commands/schedules.d.ts.map +1 -0
- package/dist/commands/schedules.js +70 -0
- package/dist/commands/schedules.js.map +1 -0
- package/dist/commands/schedules_pause.d.ts +16 -0
- package/dist/commands/schedules_pause.d.ts.map +1 -0
- package/dist/commands/schedules_pause.js +40 -0
- package/dist/commands/schedules_pause.js.map +1 -0
- package/dist/commands/schedules_resume.d.ts +8 -0
- package/dist/commands/schedules_resume.d.ts.map +1 -0
- package/dist/commands/schedules_resume.js +8 -0
- package/dist/commands/schedules_resume.js.map +1 -0
- package/dist/commands/schedules_trigger.d.ts +13 -0
- package/dist/commands/schedules_trigger.d.ts.map +1 -0
- package/dist/commands/schedules_trigger.js +32 -0
- package/dist/commands/schedules_trigger.js.map +1 -0
- package/dist/commands/tasks_complete.d.ts +15 -0
- package/dist/commands/tasks_complete.d.ts.map +1 -0
- package/dist/commands/tasks_complete.js +41 -0
- package/dist/commands/tasks_complete.js.map +1 -0
- package/dist/commands/tasks_fail.d.ts +16 -0
- package/dist/commands/tasks_fail.d.ts.map +1 -0
- package/dist/commands/tasks_fail.js +47 -0
- package/dist/commands/tasks_fail.js.map +1 -0
- package/dist/commands/workers.d.ts +11 -0
- package/dist/commands/workers.d.ts.map +1 -0
- package/dist/commands/workers.js +35 -0
- package/dist/commands/workers.js.map +1 -0
- package/dist/commands/workflows_lifecycle.d.ts +12 -0
- package/dist/commands/workflows_lifecycle.d.ts.map +1 -0
- package/dist/commands/workflows_lifecycle.js +37 -0
- package/dist/commands/workflows_lifecycle.js.map +1 -0
- package/dist/configure.d.ts +2 -2
- package/dist/configure.js +2 -2
- package/dist/providers/dashboard_provider.d.ts +57 -54
- package/dist/providers/dashboard_provider.d.ts.map +1 -1
- package/dist/providers/dashboard_provider.js +399 -288
- package/dist/providers/dashboard_provider.js.map +1 -1
- package/dist/providers/durable_provider.d.ts.map +1 -1
- package/dist/providers/durable_provider.js +67 -37
- package/dist/providers/durable_provider.js.map +1 -1
- package/dist/src/commands/console_command.d.ts +82 -0
- package/dist/src/commands/console_command.d.ts.map +1 -0
- package/dist/src/commands/console_command.js +238 -0
- package/dist/src/commands/console_command.js.map +1 -0
- package/dist/src/commands/runs.js +2 -2
- package/dist/src/commands/runs.js.map +1 -1
- package/dist/src/concurrency.d.ts.map +1 -1
- package/dist/src/concurrency.js +1 -0
- package/dist/src/concurrency.js.map +1 -1
- package/dist/src/config_types.d.ts +79 -26
- package/dist/src/config_types.d.ts.map +1 -1
- package/dist/src/dashboard/access_denied_page.d.ts +5 -7
- package/dist/src/dashboard/access_denied_page.d.ts.map +1 -1
- package/dist/src/dashboard/access_denied_page.js +2 -6
- package/dist/src/dashboard/access_denied_page.js.map +1 -1
- package/dist/src/dashboard/audit.d.ts +14 -0
- package/dist/src/dashboard/audit.d.ts.map +1 -0
- package/dist/src/dashboard/audit.js +36 -0
- package/dist/src/dashboard/audit.js.map +1 -0
- package/dist/src/dashboard/console_authorize.d.ts +98 -0
- package/dist/src/dashboard/console_authorize.d.ts.map +1 -0
- package/dist/src/dashboard/console_authorize.js +163 -0
- package/dist/src/dashboard/console_authorize.js.map +1 -0
- package/dist/src/dashboard/console_shell.d.ts +45 -0
- package/dist/src/dashboard/console_shell.d.ts.map +1 -0
- package/dist/src/dashboard/console_shell.js +125 -0
- package/dist/src/dashboard/console_shell.js.map +1 -0
- package/dist/src/dashboard/console_switcher.d.ts +132 -0
- package/dist/src/dashboard/console_switcher.d.ts.map +1 -0
- package/dist/src/dashboard/console_switcher.js +201 -0
- package/dist/src/dashboard/console_switcher.js.map +1 -0
- package/dist/src/dashboard/define_config.d.ts +68 -81
- package/dist/src/dashboard/define_config.d.ts.map +1 -1
- package/dist/src/dashboard/define_config.js +18 -112
- package/dist/src/dashboard/define_config.js.map +1 -1
- package/dist/src/dashboard/dev_tools.d.ts +102 -0
- package/dist/src/dashboard/dev_tools.d.ts.map +1 -0
- package/dist/src/dashboard/dev_tools.js +502 -0
- package/dist/src/dashboard/dev_tools.js.map +1 -0
- package/dist/src/dashboard/diagnostics-recorder.d.ts +1 -1
- package/dist/src/dashboard/diagnostics-recorder.js +1 -1
- package/dist/src/dashboard/gateway-adapter.d.ts +6 -6
- package/dist/src/dashboard/gateway-adapter.d.ts.map +1 -1
- package/dist/src/dashboard/gateway-adapter.js +5 -5
- package/dist/src/dashboard/gateway-adapter.js.map +1 -1
- package/dist/src/dashboard/handlers.d.ts +48 -39
- package/dist/src/dashboard/handlers.d.ts.map +1 -1
- package/dist/src/dashboard/handlers.js +181 -83
- package/dist/src/dashboard/handlers.js.map +1 -1
- package/dist/src/dashboard/index.d.ts +12 -9
- package/dist/src/dashboard/index.d.ts.map +1 -1
- package/dist/src/dashboard/index.js +10 -7
- package/dist/src/dashboard/index.js.map +1 -1
- package/dist/src/dashboard/list-filters.d.ts +27 -0
- package/dist/src/dashboard/list-filters.d.ts.map +1 -0
- package/dist/src/dashboard/list-filters.js +69 -0
- package/dist/src/dashboard/list-filters.js.map +1 -0
- package/dist/src/dashboard/openapi.d.ts.map +1 -1
- package/dist/src/dashboard/openapi.js +127 -52
- package/dist/src/dashboard/openapi.js.map +1 -1
- package/dist/src/dashboard/run-filter.d.ts +18 -15
- package/dist/src/dashboard/run-filter.d.ts.map +1 -1
- package/dist/src/dashboard/run-filter.js +30 -22
- package/dist/src/dashboard/run-filter.js.map +1 -1
- package/dist/src/dashboard/spa.d.ts +26 -1
- package/dist/src/dashboard/spa.d.ts.map +1 -1
- package/dist/src/dashboard/spa.js +9 -2
- package/dist/src/dashboard/spa.js.map +1 -1
- package/dist/src/dashboard/tenant_scope.d.ts +38 -0
- package/dist/src/dashboard/tenant_scope.d.ts.map +1 -0
- package/dist/src/dashboard/tenant_scope.js +166 -0
- package/dist/src/dashboard/tenant_scope.js.map +1 -0
- package/dist/src/define_config.d.ts +27 -12
- package/dist/src/define_config.d.ts.map +1 -1
- package/dist/src/define_config.js +9 -4
- package/dist/src/define_config.js.map +1 -1
- package/dist/src/diagnostics/index.d.ts +11 -0
- package/dist/src/diagnostics/index.d.ts.map +1 -0
- package/dist/src/diagnostics/index.js +6 -0
- package/dist/src/diagnostics/index.js.map +1 -0
- package/dist/src/diagnostics/transport.d.ts +71 -0
- package/dist/src/diagnostics/transport.d.ts.map +1 -0
- package/dist/src/diagnostics/transport.js +188 -0
- package/dist/src/diagnostics/transport.js.map +1 -0
- package/dist/src/diagnostics-bridge.d.ts +2 -1
- package/dist/src/diagnostics-bridge.d.ts.map +1 -1
- package/dist/src/diagnostics-bridge.js +7 -1
- package/dist/src/diagnostics-bridge.js.map +1 -1
- package/dist/src/doctor/agora_doctor.d.ts +116 -0
- package/dist/src/doctor/agora_doctor.d.ts.map +1 -0
- package/dist/src/doctor/agora_doctor.js +685 -0
- package/dist/src/doctor/agora_doctor.js.map +1 -0
- package/dist/src/doctor/checks.d.ts +28 -0
- package/dist/src/doctor/checks.d.ts.map +1 -0
- package/dist/src/doctor/checks.js +288 -0
- package/dist/src/doctor/checks.js.map +1 -0
- package/dist/src/doctor/index.d.ts +9 -0
- package/dist/src/doctor/index.d.ts.map +1 -0
- package/dist/src/doctor/index.js +16 -0
- package/dist/src/doctor/index.js.map +1 -0
- package/dist/src/engine.d.ts +55 -9
- package/dist/src/engine.d.ts.map +1 -1
- package/dist/src/engine.js +333 -84
- package/dist/src/engine.js.map +1 -1
- package/dist/src/errors.d.ts +9 -0
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/errors.js +13 -0
- package/dist/src/errors.js.map +1 -1
- package/dist/src/event-trigger-bridge.d.ts +5 -14
- package/dist/src/event-trigger-bridge.d.ts.map +1 -1
- package/dist/src/event-trigger-bridge.js +11 -99
- package/dist/src/event-trigger-bridge.js.map +1 -1
- package/dist/src/index.d.ts +8 -5
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +6 -4
- package/dist/src/index.js.map +1 -1
- package/dist/src/interfaces.d.ts +53 -9
- package/dist/src/interfaces.d.ts.map +1 -1
- package/dist/src/interfaces.js +8 -0
- package/dist/src/interfaces.js.map +1 -1
- package/dist/src/origin.js +3 -3
- package/dist/src/role_bindings.d.ts +8 -8
- package/dist/src/role_bindings.js +8 -8
- package/dist/src/run-gateway/interface.d.ts +4 -3
- package/dist/src/run-gateway/interface.d.ts.map +1 -1
- package/dist/src/run-gateway/proxy-run-gateway.d.ts +4 -2
- package/dist/src/run-gateway/proxy-run-gateway.d.ts.map +1 -1
- package/dist/src/run-gateway/proxy-run-gateway.js +21 -6
- package/dist/src/run-gateway/proxy-run-gateway.js.map +1 -1
- package/dist/src/run-gateway/run-request-responder.d.ts +6 -1
- package/dist/src/run-gateway/run-request-responder.d.ts.map +1 -1
- package/dist/src/run-gateway/run-request-responder.js +30 -3
- package/dist/src/run-gateway/run-request-responder.js.map +1 -1
- package/dist/src/run-gateway/store-run-gateway.d.ts +4 -4
- package/dist/src/run-gateway/store-run-gateway.d.ts.map +1 -1
- package/dist/src/run-gateway/store-run-gateway.js +4 -4
- package/dist/src/run-gateway/store-run-gateway.js.map +1 -1
- package/dist/src/run-gateway/tenant-auth.d.ts +19 -1
- package/dist/src/run-gateway/tenant-auth.d.ts.map +1 -1
- package/dist/src/run-gateway/tenant-auth.js +133 -0
- package/dist/src/run-gateway/tenant-auth.js.map +1 -1
- package/dist/src/run-gateway/tenant-scoped-gateway.d.ts +10 -0
- package/dist/src/run-gateway/tenant-scoped-gateway.d.ts.map +1 -0
- package/dist/src/run-gateway/tenant-scoped-gateway.js +107 -0
- package/dist/src/run-gateway/tenant-scoped-gateway.js.map +1 -0
- package/dist/src/run-value-facets.d.ts +1 -1
- package/dist/src/run-value-facets.d.ts.map +1 -1
- package/dist/src/run-value-facets.js +5 -1
- package/dist/src/run-value-facets.js.map +1 -1
- package/dist/src/scheduler.d.ts.map +1 -1
- package/dist/src/scheduler.js +2 -1
- package/dist/src/scheduler.js.map +1 -1
- package/dist/src/schedules.d.ts +16 -1
- package/dist/src/schedules.d.ts.map +1 -1
- package/dist/src/schedules.js +29 -4
- package/dist/src/schedules.js.map +1 -1
- package/dist/src/services/main.d.ts +3 -3
- package/dist/src/services/main.js +6 -6
- package/dist/src/services/main.js.map +1 -1
- package/dist/src/singleton-admission.d.ts.map +1 -1
- package/dist/src/singleton-admission.js +2 -0
- package/dist/src/singleton-admission.js.map +1 -1
- package/dist/src/singleton-gate.d.ts +1 -1
- package/dist/src/singleton-gate.d.ts.map +1 -1
- package/dist/src/singleton-gate.js +4 -3
- package/dist/src/singleton-gate.js.map +1 -1
- package/dist/src/sql-schema.d.ts +54 -0
- package/dist/src/sql-schema.d.ts.map +1 -0
- package/dist/src/sql-schema.js +145 -0
- package/dist/src/sql-schema.js.map +1 -0
- package/dist/src/stores/factory.d.ts +6 -0
- package/dist/src/stores/factory.d.ts.map +1 -1
- package/dist/src/stores/factory.js +3 -0
- package/dist/src/stores/factory.js.map +1 -1
- package/dist/src/stores/lucid-mappers.d.ts +3 -0
- package/dist/src/stores/lucid-mappers.d.ts.map +1 -1
- package/dist/src/stores/lucid-mappers.js +12 -0
- package/dist/src/stores/lucid-mappers.js.map +1 -1
- package/dist/src/stores/lucid-pg-hot-path.d.ts +6 -2
- package/dist/src/stores/lucid-pg-hot-path.d.ts.map +1 -1
- package/dist/src/stores/lucid-pg-hot-path.js +7 -3
- package/dist/src/stores/lucid-pg-hot-path.js.map +1 -1
- package/dist/src/stores/lucid-schema.d.ts +18 -4
- package/dist/src/stores/lucid-schema.d.ts.map +1 -1
- package/dist/src/stores/lucid-schema.js +106 -61
- package/dist/src/stores/lucid-schema.js.map +1 -1
- package/dist/src/stores/lucid.d.ts +42 -2
- package/dist/src/stores/lucid.d.ts.map +1 -1
- package/dist/src/stores/lucid.js +450 -231
- package/dist/src/stores/lucid.js.map +1 -1
- package/dist/src/tenancy.d.ts +104 -0
- package/dist/src/tenancy.d.ts.map +1 -0
- package/dist/src/tenancy.js +91 -0
- package/dist/src/tenancy.js.map +1 -0
- package/dist/src/testing/in-memory-state-store.d.ts.map +1 -1
- package/dist/src/testing/in-memory-state-store.js +9 -3
- package/dist/src/testing/in-memory-state-store.js.map +1 -1
- package/dist/src/testing-kit/state-store-conformance.d.ts.map +1 -1
- package/dist/src/testing-kit/state-store-conformance.js +59 -0
- package/dist/src/testing-kit/state-store-conformance.js.map +1 -1
- package/dist/src/testing-kit/transport-conformance.d.ts.map +1 -1
- package/dist/src/testing-kit/transport-conformance.js +5 -1
- package/dist/src/testing-kit/transport-conformance.js.map +1 -1
- package/dist/src/transports/bullmq/bullmq-transport.d.ts +1 -1
- package/dist/src/transports/bullmq/bullmq-transport.d.ts.map +1 -1
- package/dist/src/transports/bullmq/bullmq-transport.js +14 -3
- package/dist/src/transports/bullmq/bullmq-transport.js.map +1 -1
- package/dist/src/transports/db-schema.d.ts +13 -5
- package/dist/src/transports/db-schema.d.ts.map +1 -1
- package/dist/src/transports/db-schema.js +52 -27
- package/dist/src/transports/db-schema.js.map +1 -1
- package/dist/src/transports/db.d.ts +6 -0
- package/dist/src/transports/db.d.ts.map +1 -1
- package/dist/src/transports/db.js +91 -42
- package/dist/src/transports/db.js.map +1 -1
- package/dist/src/transports/factory.d.ts +16 -0
- package/dist/src/transports/factory.d.ts.map +1 -1
- package/dist/src/transports/factory.js +6 -1
- package/dist/src/transports/factory.js.map +1 -1
- package/dist/src/transports/queue.d.ts +2 -2
- package/dist/src/transports/queue.d.ts.map +1 -1
- package/dist/src/transports/queue.js +49 -8
- package/dist/src/transports/queue.js.map +1 -1
- package/dist/src/transports/worker-keys-db.d.ts +5 -0
- package/dist/src/transports/worker-keys-db.d.ts.map +1 -1
- package/dist/src/transports/worker-keys-db.js +10 -8
- package/dist/src/transports/worker-keys-db.js.map +1 -1
- package/dist/src/workflow-discovery.d.ts +1 -1
- package/dist/src/workflow-discovery.d.ts.map +1 -1
- package/dist/src/workflow-discovery.js +4 -7
- package/dist/src/workflow-discovery.js.map +1 -1
- package/dist/src/workflow-events.d.ts +20 -51
- package/dist/src/workflow-events.d.ts.map +1 -1
- package/dist/src/workflow-events.js +12 -30
- package/dist/src/workflow-events.js.map +1 -1
- package/dist/src/workflow-ref.d.ts +1 -1
- package/dist/stubs/config/durable_dashboard.stub +9 -29
- package/dist/stubs/database/migrations/create_durable_tables.stub +12 -2
- package/dist/stubs/database/migrations/create_durable_transport_messages.stub +34 -5
- package/dist/stubs/database/migrations/create_durable_transport_tables.stub +30 -8
- package/dist/stubs/database/migrations/create_durable_transport_worker_keys.stub +24 -2
- package/package.json +25 -7
- package/skills/durable-cluster/SKILL.md +43 -23
- package/skills/durable-reliability/SKILL.md +13 -7
- package/dist/assets/spa/assets/index-70hGzOnT.css +0 -1
- package/dist/assets/spa/assets/index-CJjMAUau.js +0 -16
- package/dist/assets/spa/assets/index-CJjMAUau.js.map +0 -1
- package/dist/commands/retry.d.ts +0 -16
- package/dist/commands/retry.d.ts.map +0 -1
- package/dist/commands/retry.js +0 -34
- package/dist/commands/retry.js.map +0 -1
- package/dist/src/dashboard/auth.d.ts +0 -134
- package/dist/src/dashboard/auth.d.ts.map +0 -1
- package/dist/src/dashboard/auth.js +0 -156
- package/dist/src/dashboard/auth.js.map +0 -1
- package/dist/src/dashboard/login_page.d.ts +0 -36
- package/dist/src/dashboard/login_page.d.ts.map +0 -1
- package/dist/src/dashboard/login_page.js +0 -158
- package/dist/src/dashboard/login_page.js.map +0 -1
- package/dist/src/dashboard/session_cookie.d.ts +0 -45
- package/dist/src/dashboard/session_cookie.d.ts.map +0 -1
- package/dist/src/dashboard/session_cookie.js +0 -97
- package/dist/src/dashboard/session_cookie.js.map +0 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { args, flags } from '@adonisjs/core/ace';
|
|
8
|
+
import { cell, DurableConsoleCommand, pageFooter, renderTable, } from '../src/commands/console_command.js';
|
|
9
|
+
import { getFanMembers } from '../src/dashboard/handlers.js';
|
|
10
|
+
/**
|
|
11
|
+
* `node ace durable:runs:fan <id> <group>` — one page of a wide fan's member steps (a fan
|
|
12
|
+
* `durable:runs:show` summarized), through the console's `GET /runs/:id/fans/:group`.
|
|
13
|
+
*/
|
|
14
|
+
export default class DurableRunsFan extends DurableConsoleCommand {
|
|
15
|
+
static commandName = 'durable:runs:fan';
|
|
16
|
+
static description = "List a run's fan members, one page at a time";
|
|
17
|
+
async perform() {
|
|
18
|
+
const body = await this.call(getFanMembers, {
|
|
19
|
+
params: { id: this.id, group: this.group },
|
|
20
|
+
query: {
|
|
21
|
+
...(this.failed ? { filter: { status: 'failed' } } : {}),
|
|
22
|
+
...(this.page !== undefined ? { page: String(this.page) } : {}),
|
|
23
|
+
...(this.size !== undefined ? { size: String(this.size) } : {}),
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
if (this.json) {
|
|
27
|
+
this.printJson(body);
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
this.logger.log(body.data.length === 0
|
|
31
|
+
? 'No members.'
|
|
32
|
+
: renderTable(['SEQ', 'STEP', 'STATUS', 'ATTEMPTS', 'DURATION', 'ERROR'], body.data.map((s) => [
|
|
33
|
+
cell(s.seq),
|
|
34
|
+
cell(s.name),
|
|
35
|
+
cell(s.status),
|
|
36
|
+
cell(s.attempts),
|
|
37
|
+
`${cell(s.durationMs)}ms`,
|
|
38
|
+
s.error === undefined || s.error === null ? '-' : cell(s.error).slice(0, 80),
|
|
39
|
+
])));
|
|
40
|
+
this.logger.log(pageFooter(body.meta));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
__decorate([
|
|
44
|
+
args.string({ description: 'Run id' })
|
|
45
|
+
], DurableRunsFan.prototype, "id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
args.string({ description: 'Fan group, from durable:runs:show' })
|
|
48
|
+
], DurableRunsFan.prototype, "group", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
flags.boolean({ description: 'Only failed members' })
|
|
51
|
+
], DurableRunsFan.prototype, "failed", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
flags.number({ description: 'Page, 1-based (default 1)' })
|
|
54
|
+
], DurableRunsFan.prototype, "page", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
flags.number({ description: 'Rows per page (default 100, at most 500)' })
|
|
57
|
+
], DurableRunsFan.prototype, "size", void 0);
|
|
58
|
+
//# sourceMappingURL=runs_fan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs_fan.js","sourceRoot":"","sources":["../../commands/runs_fan.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EACL,IAAI,EACJ,qBAAqB,EACrB,UAAU,EACV,WAAW,GACZ,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,qBAAqB;IAC/D,MAAM,CAAU,WAAW,GAAG,kBAAkB,CAAC;IACjD,MAAM,CAAU,WAAW,GAAG,8CAA8C,CAAC;IAiBnE,KAAK,CAAC,OAAO;QACrB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,CAGzB,aAAa,EAAE;YAChB,MAAM,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;YAC1C,KAAK,EAAE;gBACL,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBACxD,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC/D,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aAChE;SACF,CAAC,CAAC;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,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;4CACrC;AAGd;IADP,KAAK,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,0CAA0C,EAAE,CAAC;4CACpD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DurableConsoleCommand } from '../src/commands/console_command.js';
|
|
2
|
+
/**
|
|
3
|
+
* `node ace durable:runs:redispatch <id>` — send a run's pending remote steps to their workers
|
|
4
|
+
* again, through the console's `POST /runs/:id/redispatch`. For a step whose job was lost; on a step
|
|
5
|
+
* a worker is still running it runs the step twice, so it asks first (`--force` skips).
|
|
6
|
+
*/
|
|
7
|
+
export default class DurableRunsRedispatch extends DurableConsoleCommand {
|
|
8
|
+
static commandName: string;
|
|
9
|
+
static description: string;
|
|
10
|
+
id: string;
|
|
11
|
+
force: boolean;
|
|
12
|
+
protected perform(): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=runs_redispatch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs_redispatch.d.ts","sourceRoot":"","sources":["../../commands/runs_redispatch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAI3E;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,qBAAqB;IACtE,OAAgB,WAAW,SAA6B;IACxD,OAAgB,WAAW,SAA4D;IAG/E,EAAE,EAAE,MAAM,CAAC;IAGX,KAAK,EAAE,OAAO,CAAC;IAEvB,UAAgB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAWvC;CACF"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { args, flags } from '@adonisjs/core/ace';
|
|
8
|
+
import { DurableConsoleCommand } from '../src/commands/console_command.js';
|
|
9
|
+
import { redispatchPendingRun } from '../src/dashboard/handlers.js';
|
|
10
|
+
/**
|
|
11
|
+
* `node ace durable:runs:redispatch <id>` — send a run's pending remote steps to their workers
|
|
12
|
+
* again, through the console's `POST /runs/:id/redispatch`. For a step whose job was lost; on a step
|
|
13
|
+
* a worker is still running it runs the step twice, so it asks first (`--force` skips).
|
|
14
|
+
*/
|
|
15
|
+
export default class DurableRunsRedispatch extends DurableConsoleCommand {
|
|
16
|
+
static commandName = 'durable:runs:redispatch';
|
|
17
|
+
static description = "Re-send a run's pending remote steps (a lost dispatch)";
|
|
18
|
+
async perform() {
|
|
19
|
+
await this.confirm(this.force, `Re-send the pending remote steps of ${this.id}? A step a worker is still running runs twice.`);
|
|
20
|
+
this.audit(this.id);
|
|
21
|
+
const body = await this.call(redispatchPendingRun, {
|
|
22
|
+
params: { id: this.id },
|
|
23
|
+
});
|
|
24
|
+
if (this.json)
|
|
25
|
+
return this.printJson(body);
|
|
26
|
+
this.logger.success(`Run ${this.id}: pending steps re-sent (status: ${body.result.status}).`);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
__decorate([
|
|
30
|
+
args.string({ description: 'Run id' })
|
|
31
|
+
], DurableRunsRedispatch.prototype, "id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
flags.boolean({ description: 'Do not ask for confirmation' })
|
|
34
|
+
], DurableRunsRedispatch.prototype, "force", void 0);
|
|
35
|
+
//# sourceMappingURL=runs_redispatch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs_redispatch.js","sourceRoot":"","sources":["../../commands/runs_redispatch.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAGpE;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,qBAAqB;IACtE,MAAM,CAAU,WAAW,GAAG,yBAAyB,CAAC;IACxD,MAAM,CAAU,WAAW,GAAG,wDAAwD,CAAC;IAQ7E,KAAK,CAAC,OAAO;QACrB,MAAM,IAAI,CAAC,OAAO,CAChB,IAAI,CAAC,KAAK,EACV,uCAAuC,IAAI,CAAC,EAAE,gDAAgD,CAC/F,CAAC;QACF,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACpB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,CAAwB,oBAAoB,EAAE;YACxE,MAAM,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE;SACxB,CAAC,CAAC;QACH,IAAI,IAAI,CAAC,IAAI;YAAE,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,IAAI,CAAC,EAAE,oCAAoC,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,CAAC;IAChG,CAAC;CACF;AAjBS;IADP,IAAI,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC;iDACpB;AAGX;IADP,KAAK,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;oDACvC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DurableConsoleCommand } from '../src/commands/console_command.js';
|
|
2
|
+
/**
|
|
3
|
+
* `node ace durable:runs:replay <id> --input '<json>'` — fix-and-replay, through the console's
|
|
4
|
+
* `POST /runs/:id/retry-with-input`: start a fresh linked run of the same workflow with a corrected
|
|
5
|
+
* input. The original run is left as it is.
|
|
6
|
+
*/
|
|
7
|
+
export default class DurableRunsReplay extends DurableConsoleCommand {
|
|
8
|
+
static commandName: string;
|
|
9
|
+
static description: string;
|
|
10
|
+
id: string;
|
|
11
|
+
input?: string;
|
|
12
|
+
protected perform(): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=runs_replay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs_replay.d.ts","sourceRoot":"","sources":["../../commands/runs_replay.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,qBAAqB,EAAY,MAAM,oCAAoC,CAAC;AAGjG;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,qBAAqB;IAClE,OAAgB,WAAW,SAAyB;IACpD,OAAgB,WAAW,SAAkE;IAGrF,EAAE,EAAE,MAAM,CAAC;IAGX,KAAK,CAAC,EAAE,MAAM,CAAC;IAEvB,UAAgB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAUvC;CACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { args, flags } from '@adonisjs/core/ace';
|
|
8
|
+
import { CliRefusal, DurableConsoleCommand, jsonFlag } from '../src/commands/console_command.js';
|
|
9
|
+
import { retryWithInputRun } from '../src/dashboard/handlers.js';
|
|
10
|
+
/**
|
|
11
|
+
* `node ace durable:runs:replay <id> --input '<json>'` — fix-and-replay, through the console's
|
|
12
|
+
* `POST /runs/:id/retry-with-input`: start a fresh linked run of the same workflow with a corrected
|
|
13
|
+
* input. The original run is left as it is.
|
|
14
|
+
*/
|
|
15
|
+
export default class DurableRunsReplay extends DurableConsoleCommand {
|
|
16
|
+
static commandName = 'durable:runs:replay';
|
|
17
|
+
static description = "Start a fresh run of a run's workflow with a corrected input";
|
|
18
|
+
async perform() {
|
|
19
|
+
if (this.input === undefined)
|
|
20
|
+
throw new CliRefusal('--input is required (JSON).');
|
|
21
|
+
const input = jsonFlag('input', this.input);
|
|
22
|
+
this.audit(this.id);
|
|
23
|
+
const body = await this.call(retryWithInputRun, {
|
|
24
|
+
params: { id: this.id },
|
|
25
|
+
body: { input },
|
|
26
|
+
});
|
|
27
|
+
if (this.json)
|
|
28
|
+
return this.printJson(body);
|
|
29
|
+
this.logger.success(`Started ${body.result.runId} from ${this.id} with the corrected input.`);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
__decorate([
|
|
33
|
+
args.string({ description: 'Run id' })
|
|
34
|
+
], DurableRunsReplay.prototype, "id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
flags.string({ description: 'The corrected input, as JSON' })
|
|
37
|
+
], DurableRunsReplay.prototype, "input", void 0);
|
|
38
|
+
//# sourceMappingURL=runs_replay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs_replay.js","sourceRoot":"","sources":["../../commands/runs_replay.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AACjG,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEjE;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,qBAAqB;IAClE,MAAM,CAAU,WAAW,GAAG,qBAAqB,CAAC;IACpD,MAAM,CAAU,WAAW,GAAG,8DAA8D,CAAC;IAQnF,KAAK,CAAC,OAAO;QACrB,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS;YAAE,MAAM,IAAI,UAAU,CAAC,6BAA6B,CAAC,CAAC;QAClF,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QAC5C,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACpB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,CAAgC,iBAAiB,EAAE;YAC7E,MAAM,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE;YACvB,IAAI,EAAE,EAAE,KAAK,EAAE;SAChB,CAAC,CAAC;QACH,IAAI,IAAI,CAAC,IAAI;YAAE,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,IAAI,CAAC,MAAM,CAAC,KAAK,SAAS,IAAI,CAAC,EAAE,4BAA4B,CAAC,CAAC;IAChG,CAAC;CACF;AAhBS;IADP,IAAI,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC;6CACpB;AAGX;IADP,KAAK,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,8BAA8B,EAAE,CAAC;gDACvC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DurableConsoleCommand } from '../src/commands/console_command.js';
|
|
2
|
+
/**
|
|
3
|
+
* `node ace durable:runs:retry <id>` — re-enqueue a failed or stuck run, through the console's
|
|
4
|
+
* `POST /runs/:id/retry`: it goes back to `pending` and a worker resumes it, replaying completed
|
|
5
|
+
* steps from their checkpoints and re-attempting the failed one.
|
|
6
|
+
*/
|
|
7
|
+
export default class DurableRunsRetry extends DurableConsoleCommand {
|
|
8
|
+
static commandName: string;
|
|
9
|
+
static description: string;
|
|
10
|
+
id: string;
|
|
11
|
+
protected perform(): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=runs_retry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs_retry.d.ts","sourceRoot":"","sources":["../../commands/runs_retry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAI3E;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,qBAAqB;IACjE,OAAgB,WAAW,SAAwB;IACnD,OAAgB,WAAW,SAA8C;IAGjE,EAAE,EAAE,MAAM,CAAC;IAEnB,UAAgB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAKvC;CACF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { args } from '@adonisjs/core/ace';
|
|
8
|
+
import { DurableConsoleCommand } from '../src/commands/console_command.js';
|
|
9
|
+
import { retryRun } from '../src/dashboard/handlers.js';
|
|
10
|
+
/**
|
|
11
|
+
* `node ace durable:runs:retry <id>` — re-enqueue a failed or stuck run, through the console's
|
|
12
|
+
* `POST /runs/:id/retry`: it goes back to `pending` and a worker resumes it, replaying completed
|
|
13
|
+
* steps from their checkpoints and re-attempting the failed one.
|
|
14
|
+
*/
|
|
15
|
+
export default class DurableRunsRetry extends DurableConsoleCommand {
|
|
16
|
+
static commandName = 'durable:runs:retry';
|
|
17
|
+
static description = 'Re-enqueue (retry) a failed or stuck run';
|
|
18
|
+
async perform() {
|
|
19
|
+
this.audit(this.id);
|
|
20
|
+
const body = await this.call(retryRun, { params: { id: this.id } });
|
|
21
|
+
if (this.json)
|
|
22
|
+
return this.printJson(body);
|
|
23
|
+
this.logger.success(`Run ${this.id} re-enqueued (status: ${body.result.status}).`);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
__decorate([
|
|
27
|
+
args.string({ description: 'Run id' })
|
|
28
|
+
], DurableRunsRetry.prototype, "id", void 0);
|
|
29
|
+
//# sourceMappingURL=runs_retry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs_retry.js","sourceRoot":"","sources":["../../commands/runs_retry.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAGxD;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,qBAAqB;IACjE,MAAM,CAAU,WAAW,GAAG,oBAAoB,CAAC;IACnD,MAAM,CAAU,WAAW,GAAG,0CAA0C,CAAC;IAK/D,KAAK,CAAC,OAAO;QACrB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACpB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,CAAwB,QAAQ,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QAC3F,IAAI,IAAI,CAAC,IAAI;YAAE,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,IAAI,CAAC,EAAE,yBAAyB,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,CAAC;IACrF,CAAC;CACF;AARS;IADP,IAAI,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC;4CACpB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DurableConsoleCommand } from '../src/commands/console_command.js';
|
|
2
|
+
/**
|
|
3
|
+
* `node ace durable:runs:show <id>` — one run's detail through the console's `GET /runs/:id`: the
|
|
4
|
+
* run, its step timeline, children and fans. `--field run.output` prints one value in full.
|
|
5
|
+
*/
|
|
6
|
+
export default class DurableRunsShow extends DurableConsoleCommand {
|
|
7
|
+
static commandName: string;
|
|
8
|
+
static description: string;
|
|
9
|
+
id: string;
|
|
10
|
+
full: boolean;
|
|
11
|
+
field?: string;
|
|
12
|
+
protected perform(): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=runs_show.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs_show.d.ts","sourceRoot":"","sources":["../../commands/runs_show.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,qBAAqB,EAEtB,MAAM,oCAAoC,CAAC;AAoB5C;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,qBAAqB;IAChE,OAAgB,WAAW,SAAuB;IAClD,OAAgB,WAAW,SAAoE;IAGvF,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,OAAO,CAAC;IAGd,KAAK,CAAC,EAAE,MAAM,CAAC;IAEvB,UAAgB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CA2DvC;CACF"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { args, flags } from '@adonisjs/core/ace';
|
|
8
|
+
import { CliRefusal, cell, DurableConsoleCommand, renderTable, } from '../src/commands/console_command.js';
|
|
9
|
+
import { getRun } from '../src/dashboard/handlers.js';
|
|
10
|
+
/** Read a dotted path (`run.input`, `timeline.2.output`) out of a run detail. */
|
|
11
|
+
function pick(body, path) {
|
|
12
|
+
let cursor = body;
|
|
13
|
+
for (const part of path.split('.')) {
|
|
14
|
+
if (cursor === null || typeof cursor !== 'object' || !Object.hasOwn(cursor, part)) {
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
17
|
+
cursor = cursor[part];
|
|
18
|
+
}
|
|
19
|
+
return cursor;
|
|
20
|
+
}
|
|
21
|
+
/** A step's error, cut for a table cell. */
|
|
22
|
+
function errorCell(error) {
|
|
23
|
+
return error === undefined || error === null ? '-' : cell(error).slice(0, 80);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* `node ace durable:runs:show <id>` — one run's detail through the console's `GET /runs/:id`: the
|
|
27
|
+
* run, its step timeline, children and fans. `--field run.output` prints one value in full.
|
|
28
|
+
*/
|
|
29
|
+
export default class DurableRunsShow extends DurableConsoleCommand {
|
|
30
|
+
static commandName = 'durable:runs:show';
|
|
31
|
+
static description = 'Show one run: status, input/output/error and its step timeline';
|
|
32
|
+
async perform() {
|
|
33
|
+
const body = await this.call(getRun, {
|
|
34
|
+
params: { id: this.id },
|
|
35
|
+
query: this.full ? { full: 'true' } : {},
|
|
36
|
+
});
|
|
37
|
+
if (this.field !== undefined) {
|
|
38
|
+
const value = pick(body, this.field);
|
|
39
|
+
if (value === undefined)
|
|
40
|
+
throw new CliRefusal(`run ${this.id} has no field "${this.field}"`);
|
|
41
|
+
this.printJson(this.json ? { id: this.id, field: this.field, value } : value);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (this.json) {
|
|
45
|
+
this.printJson(body);
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const run = body.run;
|
|
49
|
+
const lines = [
|
|
50
|
+
`Run ${cell(run.id)}`,
|
|
51
|
+
`Workflow ${cell(run.workflow)}@${cell(run.workflowVersion)}`,
|
|
52
|
+
`Status ${cell(run.status)}`,
|
|
53
|
+
`Namespace ${cell(run.namespace)}`,
|
|
54
|
+
...(run.tenantId !== undefined ? [`Tenant ${cell(run.tenantId)}`] : []),
|
|
55
|
+
`Tags ${Array.isArray(run.tags) && run.tags.length > 0 ? run.tags.join(', ') : '-'}`,
|
|
56
|
+
`Created ${cell(run.createdAt)}`,
|
|
57
|
+
`Updated ${cell(run.updatedAt)}`,
|
|
58
|
+
...(run.waiting !== undefined ? [`Waiting ${cell(run.waiting)}`] : []),
|
|
59
|
+
`Input ${cell(run.input)}`,
|
|
60
|
+
`Output ${cell(run.output)}`,
|
|
61
|
+
...(run.error !== undefined && run.error !== null ? [`Error ${cell(run.error)}`] : []),
|
|
62
|
+
];
|
|
63
|
+
this.logger.log(lines.join('\n'));
|
|
64
|
+
const timeline = body.timeline ?? [];
|
|
65
|
+
this.logger.log(timeline.length === 0
|
|
66
|
+
? '\nNo steps.'
|
|
67
|
+
: `\n${renderTable(['SEQ', 'STEP', 'KIND', 'STATUS', 'ATTEMPTS', 'DURATION', 'ERROR'], timeline.map((s) => [
|
|
68
|
+
cell(s.seq),
|
|
69
|
+
cell(s.name),
|
|
70
|
+
cell(s.kind),
|
|
71
|
+
cell(s.status),
|
|
72
|
+
cell(s.attempts),
|
|
73
|
+
`${cell(s.durationMs)}ms`,
|
|
74
|
+
errorCell(s.error),
|
|
75
|
+
]))}`);
|
|
76
|
+
for (const fan of body.fans ?? []) {
|
|
77
|
+
const counts = fan.counts ?? {};
|
|
78
|
+
this.logger.log(`fan ${cell(fan.group)} (${cell(fan.label)}): ${cell(fan.size)} member(s), ${counts.failed ?? 0} failed; list them with durable:runs:fan ${this.id} ${cell(fan.group)}`);
|
|
79
|
+
}
|
|
80
|
+
const children = body.children ?? [];
|
|
81
|
+
if (children.length > 0) {
|
|
82
|
+
const count = typeof body.childCount === 'number' ? body.childCount : children.length;
|
|
83
|
+
this.logger.log(`children (${count}): ${children.join(', ')}`);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
__decorate([
|
|
88
|
+
args.string({ description: 'Run id' })
|
|
89
|
+
], DurableRunsShow.prototype, "id", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
flags.boolean({ description: 'List every member of wide fans instead of fan summaries' })
|
|
92
|
+
], DurableRunsShow.prototype, "full", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
flags.string({ description: 'Print one dotted path of the detail in full, e.g. run.output' })
|
|
95
|
+
], DurableRunsShow.prototype, "field", void 0);
|
|
96
|
+
//# sourceMappingURL=runs_show.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs_show.js","sourceRoot":"","sources":["../../commands/runs_show.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EACL,UAAU,EACV,IAAI,EACJ,qBAAqB,EACrB,WAAW,GACZ,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAEtD,iFAAiF;AACjF,SAAS,IAAI,CAAC,IAAa,EAAE,IAAY;IACvC,IAAI,MAAM,GAAY,IAAI,CAAC;IAC3B,KAAK,MAAM,IAAI,IAAI,IAAI,C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AAM,MAAM,GAAI,GAAG,CAAC,MAA6C,IAAI,EAAE,CAAC;YACxE,IAAI,CAAC,MAAM,CAAC,GAAG,CACb,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,eAAe,MAAM,CAAC,MAAM,IAAI,CAAC,4CAA4C,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CACxK,CAAC;QACJ,CAAC;QACD,MAAM,QAAQ,GAAI,IAAI,CAAC,QAAiC,IAAI,EAAE,CAAC;QAC/D,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACxB,MAAM,KAAK,GAAG,OAAO,IAAI,CAAC,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;YACtF,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,aAAa,KAAK,MAAM,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;CACF;AApES;IADP,IAAI,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC;2CACpB;AAGX;IADP,KAAK,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,yDAAyD,EAAE,CAAC;6CACpE;AAGd;IADP,KAAK,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,8DAA8D,EAAE,CAAC;8CACvE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DurableConsoleCommand } from '../src/commands/console_command.js';
|
|
2
|
+
/**
|
|
3
|
+
* `node ace durable:runs:signal <id> <token> [--payload '<json>']` — deliver a signal to a run
|
|
4
|
+
* waiting on `token` (`ctx.waitForSignal`), through the console's `POST /runs/:id/signal`. Refused
|
|
5
|
+
* when the run is not waiting on that token (the error lists the ones it waits on) unless
|
|
6
|
+
* `--buffer`, which keeps it for the run's next wait.
|
|
7
|
+
*/
|
|
8
|
+
export default class DurableRunsSignal extends DurableConsoleCommand {
|
|
9
|
+
static commandName: string;
|
|
10
|
+
static description: string;
|
|
11
|
+
id: string;
|
|
12
|
+
token: string;
|
|
13
|
+
payload?: string;
|
|
14
|
+
buffer: boolean;
|
|
15
|
+
protected perform(): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=runs_signal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs_signal.d.ts","sourceRoot":"","sources":["../../commands/runs_signal.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAY,MAAM,oCAAoC,CAAC;AAIrF;;;;;GAKG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,qBAAqB;IAClE,OAAgB,WAAW,SAAyB;IACpD,OAAgB,WAAW,SAAkD;IAGrE,EAAE,EAAE,MAAM,CAAC;IAGX,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,OAAO,CAAC;IAExB,UAAgB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAiBvC;CACF"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { args, flags } from '@adonisjs/core/ace';
|
|
8
|
+
import { DurableConsoleCommand, jsonFlag } from '../src/commands/console_command.js';
|
|
9
|
+
import { signalRun } from '../src/dashboard/handlers.js';
|
|
10
|
+
/**
|
|
11
|
+
* `node ace durable:runs:signal <id> <token> [--payload '<json>']` — deliver a signal to a run
|
|
12
|
+
* waiting on `token` (`ctx.waitForSignal`), through the console's `POST /runs/:id/signal`. Refused
|
|
13
|
+
* when the run is not waiting on that token (the error lists the ones it waits on) unless
|
|
14
|
+
* `--buffer`, which keeps it for the run's next wait.
|
|
15
|
+
*/
|
|
16
|
+
export default class DurableRunsSignal extends DurableConsoleCommand {
|
|
17
|
+
static commandName = 'durable:runs:signal';
|
|
18
|
+
static description = 'Deliver a signal to a run waiting on a token';
|
|
19
|
+
async perform() {
|
|
20
|
+
const payload = jsonFlag('payload', this.payload);
|
|
21
|
+
this.audit(`${this.id} ${this.token}`);
|
|
22
|
+
const body = await this.call(signalRun, {
|
|
23
|
+
params: { id: this.id },
|
|
24
|
+
body: {
|
|
25
|
+
token: this.token,
|
|
26
|
+
...(payload !== undefined ? { payload } : {}),
|
|
27
|
+
force: this.buffer === true,
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
if (this.json)
|
|
31
|
+
return this.printJson(body);
|
|
32
|
+
this.logger.success(body.result
|
|
33
|
+
? `Signal ${this.token} delivered to ${this.id} (status: ${body.result.status}).`
|
|
34
|
+
: `Signal ${this.token} buffered for ${this.id}'s next wait.`);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
__decorate([
|
|
38
|
+
args.string({ description: 'Run id' })
|
|
39
|
+
], DurableRunsSignal.prototype, "id", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
args.string({ description: 'The signal token the run waits on' })
|
|
42
|
+
], DurableRunsSignal.prototype, "token", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
flags.string({ description: 'The payload, as JSON' })
|
|
45
|
+
], DurableRunsSignal.prototype, "payload", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
flags.boolean({ description: 'Buffer it even when the run is not waiting on the token yet' })
|
|
48
|
+
], DurableRunsSignal.prototype, "buffer", void 0);
|
|
49
|
+
//# sourceMappingURL=runs_signal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs_signal.js","sourceRoot":"","sources":["../../commands/runs_signal.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAGzD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,qBAAqB;IAClE,MAAM,CAAU,WAAW,GAAG,qBAAqB,CAAC;IACpD,MAAM,CAAU,WAAW,GAAG,8CAA8C,CAAC;IAcnE,KAAK,CAAC,OAAO;QACrB,MAAM,OAAO,GAAG,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAClD,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;QACvC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,CAA+B,SAAS,EAAE;YACpE,MAAM,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE;YACvB,IAAI,EAAE;gBACJ,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC7C,KAAK,EAAE,IAAI,CAAC,MAAM,KAAK,IAAI;aAC5B;SACF,CAAC,CAAC;QACH,IAAI,IAAI,CAAC,IAAI;YAAE,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,MAAM,CAAC,OAAO,CACjB,IAAI,CAAC,MAAM;YACT,CAAC,CAAC,UAAU,IAAI,CAAC,KAAK,iBAAiB,IAAI,CAAC,EAAE,aAAa,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI;YACjF,CAAC,CAAC,UAAU,IAAI,CAAC,KAAK,iBAAiB,IAAI,CAAC,EAAE,eAAe,CAChE,CAAC;IACJ,CAAC;CACF;AA7BS;IADP,IAAI,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC;6CACpB;AAGX;IADP,IAAI,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,mCAAmC,EAAE,CAAC;gDAC5C;AAGd;IADP,KAAK,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC;kDAC7B;AAGjB;IADP,KAAK,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,6DAA6D,EAAE,CAAC;iDACtE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DurableConsoleCommand } from '../src/commands/console_command.js';
|
|
2
|
+
/**
|
|
3
|
+
* `node ace durable:runs:update <id> <name> [--arg '<json>']` — deliver an update to a run's
|
|
4
|
+
* `ctx.onUpdate(name)` point, through the console's `POST /runs/:id/updates/:name`. The workflow's
|
|
5
|
+
* validator decides; a rejection fails with its reason and nothing is delivered.
|
|
6
|
+
*/
|
|
7
|
+
export default class DurableRunsUpdate extends DurableConsoleCommand {
|
|
8
|
+
static commandName: string;
|
|
9
|
+
static description: string;
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
arg?: string;
|
|
13
|
+
protected perform(): Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=runs_update.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs_update.d.ts","sourceRoot":"","sources":["../../commands/runs_update.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAY,MAAM,oCAAoC,CAAC;AAGrF;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,qBAAqB;IAClE,OAAgB,WAAW,SAAyB;IACpD,OAAgB,WAAW,SAAqD;IAGxE,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,GAAG,CAAC,EAAE,MAAM,CAAC;IAErB,UAAgB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CASvC;CACF"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { args, flags } from '@adonisjs/core/ace';
|
|
8
|
+
import { DurableConsoleCommand, jsonFlag } from '../src/commands/console_command.js';
|
|
9
|
+
import { updateRun } from '../src/dashboard/handlers.js';
|
|
10
|
+
/**
|
|
11
|
+
* `node ace durable:runs:update <id> <name> [--arg '<json>']` — deliver an update to a run's
|
|
12
|
+
* `ctx.onUpdate(name)` point, through the console's `POST /runs/:id/updates/:name`. The workflow's
|
|
13
|
+
* validator decides; a rejection fails with its reason and nothing is delivered.
|
|
14
|
+
*/
|
|
15
|
+
export default class DurableRunsUpdate extends DurableConsoleCommand {
|
|
16
|
+
static commandName = 'durable:runs:update';
|
|
17
|
+
static description = "Deliver an update to a run's ctx.onUpdate point";
|
|
18
|
+
async perform() {
|
|
19
|
+
const arg = jsonFlag('arg', this.arg);
|
|
20
|
+
this.audit(`${this.id} ${this.name}`);
|
|
21
|
+
const body = await this.call(updateRun, {
|
|
22
|
+
params: { id: this.id, name: this.name },
|
|
23
|
+
body: arg !== undefined ? { arg } : {},
|
|
24
|
+
});
|
|
25
|
+
if (this.json)
|
|
26
|
+
return this.printJson(body);
|
|
27
|
+
this.logger.success(`Update ${this.name} accepted by ${this.id}.`);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
__decorate([
|
|
31
|
+
args.string({ description: 'Run id' })
|
|
32
|
+
], DurableRunsUpdate.prototype, "id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
args.string({ description: 'Update name' })
|
|
35
|
+
], DurableRunsUpdate.prototype, "name", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
flags.string({ description: 'The update argument, as JSON' })
|
|
38
|
+
], DurableRunsUpdate.prototype, "arg", void 0);
|
|
39
|
+
//# sourceMappingURL=runs_update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs_update.js","sourceRoot":"","sources":["../../commands/runs_update.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,qBAAqB;IAClE,MAAM,CAAU,WAAW,GAAG,qBAAqB,CAAC;IACpD,MAAM,CAAU,WAAW,GAAG,iDAAiD,CAAC;IAWtE,KAAK,CAAC,OAAO;QACrB,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;QACtC,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACtC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACtC,MAAM,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE;YACxC,IAAI,EAAE,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE;SACvC,CAAC,CAAC;QACH,IAAI,IAAI,CAAC,IAAI;YAAE,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,IAAI,CAAC,IAAI,gBAAgB,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;IACrE,CAAC;CACF;AAlBS;IADP,IAAI,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC;6CACpB;AAGX;IADP,IAAI,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;+CACvB;AAGb;IADP,KAAK,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,8BAA8B,EAAE,CAAC;8CACzC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RunFilterCommand } from '../src/commands/console_command.js';
|
|
2
|
+
/**
|
|
3
|
+
* `node ace durable:runs:values <field>` — count the runs matching the filters by one field
|
|
4
|
+
* (`status`, `workflow`, `namespace`, `tag`, `attr` for search-attribute keys, `attr.<key>` for one
|
|
5
|
+
* key's values), through the console's `GET /runs/values`.
|
|
6
|
+
*/
|
|
7
|
+
export default class DurableRunsValues extends RunFilterCommand {
|
|
8
|
+
static commandName: string;
|
|
9
|
+
static description: string;
|
|
10
|
+
field: string;
|
|
11
|
+
limit?: number;
|
|
12
|
+
search?: string;
|
|
13
|
+
protected perform(): Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=runs_values.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs_values.d.ts","sourceRoot":"","sources":["../../commands/runs_values.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,gBAAgB,EAAe,MAAM,oCAAoC,CAAC;AAGzF;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,gBAAgB;IAC7D,OAAgB,WAAW,SAAyB;IACpD,OAAgB,WAAW,SAAiE;IAGpF,KAAK,EAAE,MAAM,CAAC;IAGd,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,MAAM,CAAC,EAAE,MAAM,CAAC;IAExB,UAAgB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAqBvC;CACF"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { args, flags } from '@adonisjs/core/ace';
|
|
8
|
+
import { cell, RunFilterCommand, renderTable } from '../src/commands/console_command.js';
|
|
9
|
+
import { runValues } from '../src/dashboard/handlers.js';
|
|
10
|
+
/**
|
|
11
|
+
* `node ace durable:runs:values <field>` — count the runs matching the filters by one field
|
|
12
|
+
* (`status`, `workflow`, `namespace`, `tag`, `attr` for search-attribute keys, `attr.<key>` for one
|
|
13
|
+
* key's values), through the console's `GET /runs/values`.
|
|
14
|
+
*/
|
|
15
|
+
export default class DurableRunsValues extends RunFilterCommand {
|
|
16
|
+
static commandName = 'durable:runs:values';
|
|
17
|
+
static description = 'Count runs by status, workflow, namespace, tag or attribute';
|
|
18
|
+
async perform() {
|
|
19
|
+
const values = await this.call(runValues, {
|
|
20
|
+
query: {
|
|
21
|
+
...this.runFilter(),
|
|
22
|
+
field: this.field,
|
|
23
|
+
...(this.limit !== undefined ? { limit: String(this.limit) } : {}),
|
|
24
|
+
...(this.search ? { search: this.search } : {}),
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
if (this.json) {
|
|
28
|
+
this.printJson({ field: this.field, data: values });
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
this.logger.log(values.length === 0
|
|
32
|
+
? 'No values.'
|
|
33
|
+
: renderTable([this.field.toUpperCase(), 'RUNS'], values.map((v) => [cell(v.value), String(v.count)])));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
__decorate([
|
|
37
|
+
args.string({ description: 'status | workflow | namespace | tag | attr | attr.<key>' })
|
|
38
|
+
], DurableRunsValues.prototype, "field", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
flags.number({ description: 'At most this many values (default 20)' })
|
|
41
|
+
], DurableRunsValues.prototype, "limit", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
flags.string({ description: 'Only values containing this text' })
|
|
44
|
+
], DurableRunsValues.prototype, "search", void 0);
|
|
45
|
+
//# sourceMappingURL=runs_values.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs_values.js","sourceRoot":"","sources":["../../commands/runs_values.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACzF,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,gBAAgB;IAC7D,MAAM,CAAU,WAAW,GAAG,qBAAqB,CAAC;IACpD,MAAM,CAAU,WAAW,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K,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,kCAAkC,EAAE,CAAC;iDAC1C"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ScheduleCommand } from '../src/commands/console_command.js';
|
|
2
|
+
/**
|
|
3
|
+
* `node ace durable:schedules` — the schedules the worker ticks, with their cadence, pause state and
|
|
4
|
+
* current window, through the console's `GET /schedules` (same filters, sort and paging). A pause
|
|
5
|
+
* set at runtime lives in the running workers, so this one-off process shows the configured state.
|
|
6
|
+
*/
|
|
7
|
+
export default class DurableSchedules extends ScheduleCommand {
|
|
8
|
+
static commandName: string;
|
|
9
|
+
static description: string;
|
|
10
|
+
workflow?: string;
|
|
11
|
+
namespace?: string;
|
|
12
|
+
paused?: string;
|
|
13
|
+
sort?: string;
|
|
14
|
+
page?: number;
|
|
15
|
+
size?: number;
|
|
16
|
+
protected perform(): Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=schedules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedules.d.ts","sourceRoot":"","sources":["../../commands/schedules.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,eAAe,EAChB,MAAM,oCAAoC,CAAC;AAI5C;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,eAAe;IAC3D,OAAgB,WAAW,SAAuB;IAClD,OAAgB,WAAW,SAAyD;IAG5E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,IAAI,CAAC,EAAE,MAAM,CAAC;IAEtB,UAAgB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAmCvC;CACF"}
|