Add debug information for pending workflows on exit (#1536)

This commit is contained in:
Omar Ajoue 2021-03-12 11:35:23 +01:00 committed by GitHub
parent ac4e4cd17d
commit 8095c4a264
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,6 +103,9 @@ export class Start extends Command {
while (executingWorkflows.length !== 0) {
if (count++ % 4 === 0) {
console.log(`Waiting for ${executingWorkflows.length} active executions to finish...`);
executingWorkflows.map(execution => {
console.log(` - Execution ID ${execution.id}, workflow ID: ${execution.workflowId}`);
});
}
await new Promise((resolve) => {
setTimeout(resolve, 500);