-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): Add Job Summary to Worker response (#7360)
- Loading branch information
1 parent
c8c14ca
commit b8608ce
Showing
8 changed files
with
58 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/cli/src/services/orchestration.handler.base.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/cli/src/services/orchestration/worker/orchestration.handler.worker.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import type { ExecutionStatus, WorkflowExecuteMode } from 'n8n-workflow'; | ||
import type { RedisServicePubSubPublisher } from '../../redis/RedisServicePubSubPublisher'; | ||
|
||
export interface WorkerCommandReceivedHandlerOptions { | ||
queueModeId: string; | ||
instanceId: string; | ||
redisPublisher: RedisServicePubSubPublisher; | ||
getRunningJobIds: () => string[]; | ||
getRunningJobsSummary: () => WorkerJobStatusSummary[]; | ||
} | ||
|
||
export interface WorkerJobStatusSummary { | ||
jobId: string; | ||
executionId: string; | ||
retryOf?: string; | ||
startedAt: Date; | ||
mode: WorkflowExecuteMode; | ||
workflowName: string; | ||
workflowId: string; | ||
status: ExecutionStatus; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters