Comparing version 0.5.4 to 0.5.5
@@ -325,14 +325,21 @@ "use strict"; | ||
switch (_b.label) { | ||
case 0: return [4 /*yield*/, this.modifier.getProcess(processId)]; | ||
case 0: return [4 /*yield*/, this.modifier.getProcess(processId) | ||
// run first task without checking delay | ||
]; | ||
case 1: | ||
state = _b.sent(); | ||
_b.label = 2; | ||
return [4 /*yield*/, this.runSyncStep(state, false)]; | ||
case 2: | ||
if (!(state.status === 'running' && ((_a = state.events[0]) === null || _a === void 0 ? void 0 : _a.deploy_time) === null)) return [3 /*break*/, 4]; | ||
// run first task without checking delay | ||
state = _b.sent(); | ||
_b.label = 3; | ||
case 3: | ||
if (!(state.status === 'running' && ((_a = state.events[0]) === null || _a === void 0 ? void 0 : _a.deploy_time) === null)) return [3 /*break*/, 5]; | ||
return [4 /*yield*/, this.runSyncStep(state, false)]; | ||
case 3: | ||
case 4: | ||
// keep running until stopped or event have delay | ||
state = _b.sent(); | ||
return [3 /*break*/, 2]; | ||
case 4: return [4 /*yield*/, this.emittNotifier(state)]; | ||
case 5: | ||
return [3 /*break*/, 3]; | ||
case 5: return [4 /*yield*/, this.emittNotifier(state)]; | ||
case 6: | ||
_b.sent(); | ||
@@ -339,0 +346,0 @@ return [2 /*return*/, state]; |
{ | ||
"name": "gent-core", | ||
"version": "0.5.4", | ||
"version": "0.5.5", | ||
"description": "Library for simple business processes implementation", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81084
1824