Skip to content

Commit b038881

Browse files
committed
Update BackendRunnerService to include jobName and options in ExecutorExecuteResponseInterface
1 parent 19ec93c commit b038881

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/backend-runner/backend-runner.service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ export class BackendRunnerService implements OnApplicationBootstrap, OnModuleIni
8383
this.logger.log(`Job ${job.name} received. Try to execute...`);
8484

8585
const result = await this.executors.get(jobName).execute({ job });
86+
result.jobName = job.name;
87+
result.options = job.data?.options;
88+
8689
this.logger.verbose(`Job ${job.name} executed with status ${result.status}`);
8790

8891
if (result.status !== 0) {

src/backend-runner/executors.interface.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ export interface ExecutorExecuteOptionsInterface {
66
}
77

88
export interface ExecutorExecuteResponseInterface {
9+
jobName?: string;
10+
options?: {
11+
[key: string | number]: any;
12+
};
913
jobId: string;
1014
status: number;
1115
data: Array<any>;

0 commit comments

Comments
 (0)