refactor: Make execution IDs mandatory in BE (#8299)
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
This commit is contained in:
@@ -30,6 +30,7 @@ import { UrlService } from '@/services/url.service';
|
||||
import { SettingsRepository } from '@db/repositories/settings.repository';
|
||||
import { ExecutionRepository } from '@db/repositories/execution.repository';
|
||||
import { FeatureNotLicensedError } from '@/errors/feature-not-licensed.error';
|
||||
import { WaitTracker } from '@/WaitTracker';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-var-requires
|
||||
const open = require('open');
|
||||
@@ -99,6 +100,8 @@ export class Start extends BaseCommand {
|
||||
// Stop with trying to activate workflows that could not be activated
|
||||
this.activeWorkflowRunner.removeAllQueuedWorkflowActivations();
|
||||
|
||||
Container.get(WaitTracker).shutdown();
|
||||
|
||||
await this.externalHooks?.run('n8n.stop', []);
|
||||
|
||||
if (Container.get(MultiMainSetup).isEnabled) {
|
||||
|
||||
@@ -122,7 +122,7 @@ export class Worker extends BaseCommand {
|
||||
{ extra: { executionId } },
|
||||
);
|
||||
}
|
||||
const workflowId = fullExecutionData.workflowData.id!; // @tech_debt Ensure this is not optional
|
||||
const workflowId = fullExecutionData.workflowData.id;
|
||||
|
||||
this.logger.info(
|
||||
`Start job: ${job.id} (Workflow ID: ${workflowId} | Execution: ${executionId})`,
|
||||
|
||||
Reference in New Issue
Block a user