Push active executions to clients to remove manual reload

This commit is contained in:
Jan Oberhauser
2019-07-24 14:25:30 +02:00
parent a9453806b8
commit 2d8038669a
12 changed files with 294 additions and 161 deletions

View File

@@ -294,7 +294,8 @@ export interface IExecutionsListResponse {
}
export interface IExecutionsCurrentSummaryExtended {
id: string;
id?: string;
idActive: string;
finished?: boolean;
mode: WorkflowExecuteMode;
startedAt: Date;
@@ -311,7 +312,8 @@ export interface IExecutionsStopData {
}
export interface IExecutionsSummary {
id: string;
id?: string; // executionIdDb
idActive?: string; // executionIdActive
mode: WorkflowExecuteMode;
finished?: boolean;
retryOf?: string;
@@ -333,10 +335,25 @@ export interface IPushData {
type: IPushDataType;
}
export type IPushDataType = 'executionFinished' | 'nodeExecuteAfter' | 'nodeExecuteBefore' | 'testWebhookDeleted' | 'testWebhookReceived';
export type IPushDataType = 'executionFinished' | 'executionStarted' | 'nodeExecuteAfter' | 'nodeExecuteBefore' | 'testWebhookDeleted' | 'testWebhookReceived';
export interface IPushDataExecutionStarted {
executionId: string;
mode: WorkflowExecuteMode;
startedAt: Date;
retryOf?: string;
workflowId: string;
workflowName?: string;
}
export interface IPushDataExecutionFinished {
data: IRun;
executionIdActive: string;
executionIdDb?: string;
}
export interface IPushDataExecutionStarted {
executionId: string;
}