@automagik/omni 2.260916.2 → 2.260916.4
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.
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
-- Queue wait on automation_logs (issue #1206).
|
|
2
|
+
--
|
|
3
|
+
-- The engine already measured how long a run waited for a concurrency slot
|
|
4
|
+
-- (#1181) but only wrote it to the process log, so the API returned no value
|
|
5
|
+
-- and "never queued" was indistinguishable from "not recorded":
|
|
6
|
+
--
|
|
7
|
+
-- automation_logs.queue_wait_ms integer, 0 = ran immediately,
|
|
8
|
+
-- NULL = row written before this column.
|
|
9
|
+
--
|
|
10
|
+
-- Hand-written following the 0043/0044/0052 precedent (additive, idempotent).
|
|
11
|
+
-- No explicit BEGIN/COMMIT — the boot migrator executes this file on a pooled
|
|
12
|
+
-- postgres-js connection, which rejects raw transaction control.
|
|
13
|
+
|
|
14
|
+
ALTER TABLE "automation_logs"
|
|
15
|
+
ADD COLUMN IF NOT EXISTS "queue_wait_ms" integer;
|
|
@@ -526,6 +526,13 @@
|
|
|
526
526
|
"when": 1787400000000,
|
|
527
527
|
"tag": "0074_trigger_logs_cost",
|
|
528
528
|
"breakpoints": true
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"idx": 75,
|
|
532
|
+
"version": "7",
|
|
533
|
+
"when": 1787500000000,
|
|
534
|
+
"tag": "0075_automation_logs_queue_wait",
|
|
535
|
+
"breakpoints": true
|
|
529
536
|
}
|
|
530
537
|
]
|
|
531
538
|
}
|
package/dist/index.js
CHANGED
|
@@ -42146,7 +42146,8 @@ class AutomationEngine {
|
|
|
42146
42146
|
conditionsMatched: result.conditionsMatched,
|
|
42147
42147
|
actionsExecuted: result.actionsExecuted,
|
|
42148
42148
|
error: result.error,
|
|
42149
|
-
executionTimeMs: result.executionTimeMs
|
|
42149
|
+
executionTimeMs: result.executionTimeMs,
|
|
42150
|
+
queueWaitMs
|
|
42150
42151
|
}, trustedTenantId);
|
|
42151
42152
|
}
|
|
42152
42153
|
logger4.info("Automation executed", {
|
|
@@ -83369,6 +83370,7 @@ var init_schema2 = __esm(() => {
|
|
|
83369
83370
|
actionsExecuted: jsonb("actions_executed").$type(),
|
|
83370
83371
|
error: text("error"),
|
|
83371
83372
|
executionTimeMs: integer("execution_time_ms"),
|
|
83373
|
+
queueWaitMs: integer("queue_wait_ms"),
|
|
83372
83374
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
83373
83375
|
tenantId: uuid("tenant_id").references(() => tenants.id, { onDelete: "restrict" })
|
|
83374
83376
|
}, (table3) => ({
|
|
@@ -115967,7 +115969,7 @@ var require_client2 = __commonJS((exports) => {
|
|
|
115967
115969
|
|
|
115968
115970
|
// ../../node_modules/.bun/@sentry+node-core@10.52.0+2c50d7e904f6cfd7/node_modules/@sentry/node-core/build/cjs/sdk/esmLoader.js
|
|
115969
115971
|
var require_esmLoader = __commonJS((exports) => {
|
|
115970
|
-
var __filename = "/home/runner/work/omni/omni
|
|
115972
|
+
var __filename = "/home/runner/work/omni/omni/node_modules/.bun/@sentry+node-core@10.52.0+2c50d7e904f6cfd7/node_modules/@sentry/node-core/build/cjs/sdk/esmLoader.js";
|
|
115971
115973
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
115972
115974
|
var core = require_cjs();
|
|
115973
115975
|
var importInTheMiddle = require_import_in_the_middle();
|
|
@@ -137418,7 +137420,7 @@ import { fileURLToPath } from "url";
|
|
|
137418
137420
|
// package.json
|
|
137419
137421
|
var package_default = {
|
|
137420
137422
|
name: "@automagik/omni",
|
|
137421
|
-
version: "2.260916.
|
|
137423
|
+
version: "2.260916.4",
|
|
137422
137424
|
repository: {
|
|
137423
137425
|
type: "git",
|
|
137424
137426
|
url: "git+https://github.com/automagik-dev/omni.git",
|
package/dist/server/index.js
CHANGED
|
@@ -39020,7 +39020,8 @@ class AutomationEngine {
|
|
|
39020
39020
|
conditionsMatched: result.conditionsMatched,
|
|
39021
39021
|
actionsExecuted: result.actionsExecuted,
|
|
39022
39022
|
error: result.error,
|
|
39023
|
-
executionTimeMs: result.executionTimeMs
|
|
39023
|
+
executionTimeMs: result.executionTimeMs,
|
|
39024
|
+
queueWaitMs
|
|
39024
39025
|
}, trustedTenantId);
|
|
39025
39026
|
}
|
|
39026
39027
|
logger4.info("Automation executed", {
|
|
@@ -77146,7 +77147,7 @@ var require_ClientVoiceManager = __commonJS((exports, module) => {
|
|
|
77146
77147
|
|
|
77147
77148
|
// ../../node_modules/.bun/@discordjs+ws@1.2.3/node_modules/@discordjs/ws/dist/index.js
|
|
77148
77149
|
var require_dist9 = __commonJS((exports, module) => {
|
|
77149
|
-
var __dirname = "/home/runner/work/omni/omni
|
|
77150
|
+
var __dirname = "/home/runner/work/omni/omni/node_modules/.bun/@discordjs+ws@1.2.3/node_modules/@discordjs/ws/dist";
|
|
77150
77151
|
var __create2 = Object.create;
|
|
77151
77152
|
var __defProp2 = Object.defineProperty;
|
|
77152
77153
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -161659,7 +161660,7 @@ var require_indexes = __commonJS((exports, module) => {
|
|
|
161659
161660
|
|
|
161660
161661
|
// ../../node_modules/.bun/thread-stream@3.1.0/node_modules/thread-stream/index.js
|
|
161661
161662
|
var require_thread_stream = __commonJS((exports, module) => {
|
|
161662
|
-
var __dirname = "/home/runner/work/omni/omni
|
|
161663
|
+
var __dirname = "/home/runner/work/omni/omni/node_modules/.bun/thread-stream@3.1.0/node_modules/thread-stream";
|
|
161663
161664
|
var { version } = require_package5();
|
|
161664
161665
|
var { EventEmitter: EventEmitter3 } = __require("events");
|
|
161665
161666
|
var { Worker } = __require("worker_threads");
|
|
@@ -162080,7 +162081,7 @@ var require_thread_stream = __commonJS((exports, module) => {
|
|
|
162080
162081
|
|
|
162081
162082
|
// ../../node_modules/.bun/pino@9.14.0/node_modules/pino/lib/transport.js
|
|
162082
162083
|
var require_transport2 = __commonJS((exports, module) => {
|
|
162083
|
-
var __dirname = "/home/runner/work/omni/omni
|
|
162084
|
+
var __dirname = "/home/runner/work/omni/omni/node_modules/.bun/pino@9.14.0/node_modules/pino/lib";
|
|
162084
162085
|
var { createRequire: createRequire2 } = __require("module");
|
|
162085
162086
|
var getCallers = require_caller();
|
|
162086
162087
|
var { join: join8, isAbsolute, sep: sep2 } = __require("path");
|
|
@@ -173854,6 +173855,7 @@ var init_schema2 = __esm(() => {
|
|
|
173854
173855
|
actionsExecuted: jsonb("actions_executed").$type(),
|
|
173855
173856
|
error: text("error"),
|
|
173856
173857
|
executionTimeMs: integer("execution_time_ms"),
|
|
173858
|
+
queueWaitMs: integer("queue_wait_ms"),
|
|
173857
173859
|
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
173858
173860
|
tenantId: uuid("tenant_id").references(() => tenants.id, { onDelete: "restrict" })
|
|
173859
173861
|
}, (table3) => ({
|
|
@@ -243883,7 +243885,7 @@ var require_client3 = __commonJS((exports) => {
|
|
|
243883
243885
|
|
|
243884
243886
|
// ../../node_modules/.bun/@sentry+node-core@10.52.0+2c50d7e904f6cfd7/node_modules/@sentry/node-core/build/cjs/sdk/esmLoader.js
|
|
243885
243887
|
var require_esmLoader = __commonJS((exports) => {
|
|
243886
|
-
var __filename = "/home/runner/work/omni/omni
|
|
243888
|
+
var __filename = "/home/runner/work/omni/omni/node_modules/.bun/@sentry+node-core@10.52.0+2c50d7e904f6cfd7/node_modules/@sentry/node-core/build/cjs/sdk/esmLoader.js";
|
|
243887
243889
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
243888
243890
|
var core3 = require_cjs6();
|
|
243889
243891
|
var importInTheMiddle = require_import_in_the_middle();
|
|
@@ -251109,7 +251111,7 @@ var init_sentry_scrub = __esm(() => {
|
|
|
251109
251111
|
var require_package7 = __commonJS((exports, module) => {
|
|
251110
251112
|
module.exports = {
|
|
251111
251113
|
name: "@omni/api",
|
|
251112
|
-
version: "2.260916.
|
|
251114
|
+
version: "2.260916.4",
|
|
251113
251115
|
private: true,
|
|
251114
251116
|
type: "module",
|
|
251115
251117
|
exports: {
|
|
@@ -278211,7 +278213,7 @@ var require_src45 = __commonJS((exports) => {
|
|
|
278211
278213
|
|
|
278212
278214
|
// ../../node_modules/.bun/@grpc+grpc-js@1.14.3/node_modules/@grpc/grpc-js/build/src/channelz.js
|
|
278213
278215
|
var require_channelz = __commonJS((exports) => {
|
|
278214
|
-
var __dirname = "/home/runner/work/omni/omni
|
|
278216
|
+
var __dirname = "/home/runner/work/omni/omni/node_modules/.bun/@grpc+grpc-js@1.14.3/node_modules/@grpc/grpc-js/build/src";
|
|
278215
278217
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
278216
278218
|
exports.registerChannelzSocket = exports.registerChannelzServer = exports.registerChannelzSubchannel = exports.registerChannelzChannel = exports.ChannelzCallTrackerStub = exports.ChannelzCallTracker = exports.ChannelzChildrenTrackerStub = exports.ChannelzChildrenTracker = exports.ChannelzTrace = exports.ChannelzTraceStub = undefined;
|
|
278217
278219
|
exports.unregisterChannelzRef = unregisterChannelzRef;
|
|
@@ -283614,7 +283616,7 @@ var require_duration = __commonJS((exports) => {
|
|
|
283614
283616
|
|
|
283615
283617
|
// ../../node_modules/.bun/@grpc+grpc-js@1.14.3/node_modules/@grpc/grpc-js/build/src/orca.js
|
|
283616
283618
|
var require_orca = __commonJS((exports) => {
|
|
283617
|
-
var __dirname = "/home/runner/work/omni/omni
|
|
283619
|
+
var __dirname = "/home/runner/work/omni/omni/node_modules/.bun/@grpc+grpc-js@1.14.3/node_modules/@grpc/grpc-js/build/src";
|
|
283618
283620
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
283619
283621
|
exports.OrcaOobMetricsSubchannelWrapper = exports.GRPC_METRICS_HEADER = exports.ServerMetricRecorder = exports.PerRequestMetricRecorder = undefined;
|
|
283620
283622
|
exports.createOrcaClient = createOrcaClient;
|
|
@@ -379581,7 +379583,8 @@ var init_automations3 = __esm(() => {
|
|
|
379581
379583
|
status: exports_external.enum(["success", "failed", "skipped"]).openapi({ description: "Execution status" }),
|
|
379582
379584
|
error: exports_external.string().nullable().openapi({ description: "Error message" }),
|
|
379583
379585
|
executedAt: exports_external.string().datetime().openapi({ description: "Execution timestamp" }),
|
|
379584
|
-
durationMs: exports_external.number().int().openapi({ description: "Duration (ms)" })
|
|
379586
|
+
durationMs: exports_external.number().int().openapi({ description: "Duration (ms)" }),
|
|
379587
|
+
queueWaitMs: exports_external.number().int().nullable().openapi({ description: "Time waited for a concurrency slot (ms); 0 = ran immediately, null = not recorded" })
|
|
379585
379588
|
});
|
|
379586
379589
|
TestAutomationSchema = exports_external.object({
|
|
379587
379590
|
event: exports_external.object({
|