@chevre/domain 22.11.0-alpha.30 → 22.11.0-alpha.31
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.
|
@@ -43,11 +43,11 @@ interface IRunningTaskByName {
|
|
|
43
43
|
executionResult?: never;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* 実行後タスクイベント
|
|
47
47
|
*/
|
|
48
48
|
interface IExecutedTask {
|
|
49
49
|
id: string;
|
|
50
|
-
status: factory.taskStatus.Running | factory.taskStatus.Aborted;
|
|
50
|
+
status: factory.taskStatus.Executed | factory.taskStatus.Running | factory.taskStatus.Aborted;
|
|
51
51
|
name: factory.taskName;
|
|
52
52
|
executionResult: factory.task.IExecutionResult;
|
|
53
53
|
/**
|
package/lib/chevre/repo/task.js
CHANGED
|
@@ -650,10 +650,8 @@ class TaskRepo {
|
|
|
650
650
|
.exec();
|
|
651
651
|
// emit event(2025-05-26~)
|
|
652
652
|
if (typeof next === 'function') {
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
task_1.taskEventEmitter.emitTaskStatusChanged(changedTask, next);
|
|
656
|
-
}
|
|
653
|
+
const changedTask = { id, name, status, remainingNumberOfTries, executionResult };
|
|
654
|
+
task_1.taskEventEmitter.emitTaskStatusChanged(changedTask, next);
|
|
657
655
|
}
|
|
658
656
|
});
|
|
659
657
|
}
|
package/package.json
CHANGED