🐛 Remove webhooks deregistration from webhook process (#1753)

This commit is contained in:
Omar Ajoue 2021-05-08 02:37:45 +02:00 committed by GitHub
parent d90acdf863
commit cdbb3acd2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,17 +61,6 @@ export class Webhook extends Command {
process.exit(processExistCode);
}, 30000);
const removePromises = [];
if (activeWorkflowRunner !== undefined) {
removePromises.push(activeWorkflowRunner.removeAll());
}
// Remove all test webhooks
const testWebhooks = TestWebhooks.getInstance();
removePromises.push(testWebhooks.removeAll());
await Promise.all(removePromises);
// Wait for active workflow executions to finish
const activeExecutionsInstance = ActiveExecutions.getInstance();
let executingWorkflows = activeExecutionsInstance.getActiveExecutions();