@taico/events 0.2.11 → 0.2.13
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.
|
@@ -22,6 +22,7 @@ export declare const ExecutionWireEvents: {
|
|
|
22
22
|
readonly EXECUTION_HEARTBEAT_POST: "execution.heartbeat.post";
|
|
23
23
|
readonly WORKER_HEARTBEAT_POST: "worker.heartbeat.post";
|
|
24
24
|
readonly WORKER_HARNESSES_REPORT_REQUESTED: "worker.harnesses.report.requested";
|
|
25
|
+
readonly TASK_EXECUTION_QUEUED: "task.execution.queued";
|
|
25
26
|
};
|
|
26
27
|
export type ExecutionWireEventName = (typeof ExecutionWireEvents)[keyof typeof ExecutionWireEvents];
|
|
27
28
|
/**
|
|
@@ -102,10 +103,18 @@ export interface ExecutionActivityWireEvent {
|
|
|
102
103
|
payload: ExecutionActivityPayload;
|
|
103
104
|
actor: MinimalEventActor;
|
|
104
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* Task execution queued event
|
|
108
|
+
* Emitted when a task enters the execution queue and is ready to be claimed by workers
|
|
109
|
+
*/
|
|
110
|
+
export interface TaskExecutionQueuedWireEvent {
|
|
111
|
+
taskId: string;
|
|
112
|
+
occurredAt: string;
|
|
113
|
+
}
|
|
105
114
|
/**
|
|
106
115
|
* Union type of all execution wire events
|
|
107
116
|
*/
|
|
108
|
-
export type ExecutionWireEvent = ExecutionCreatedWireEvent | ExecutionUpdatedWireEvent | ExecutionDeletedWireEvent | ExecutionActivityWireEvent;
|
|
117
|
+
export type ExecutionWireEvent = ExecutionCreatedWireEvent | ExecutionUpdatedWireEvent | ExecutionDeletedWireEvent | ExecutionActivityWireEvent | TaskExecutionQueuedWireEvent;
|
|
109
118
|
/**
|
|
110
119
|
* Type guards for event identification
|
|
111
120
|
*/
|
|
@@ -21,6 +21,7 @@ export const ExecutionWireEvents = {
|
|
|
21
21
|
EXECUTION_HEARTBEAT_POST: 'execution.heartbeat.post',
|
|
22
22
|
WORKER_HEARTBEAT_POST: 'worker.heartbeat.post',
|
|
23
23
|
WORKER_HARNESSES_REPORT_REQUESTED: 'worker.harnesses.report.requested',
|
|
24
|
+
TASK_EXECUTION_QUEUED: 'task.execution.queued',
|
|
24
25
|
};
|
|
25
26
|
/**
|
|
26
27
|
* Type guards for event identification
|