mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(core): Resolves response promise for active execution on job finished in queue mode (#15643)
Co-authored-by: Jaakko Husso <jaakko@n8n.io>
This commit is contained in:
committed by
GitHub
parent
92cf3cedbb
commit
7cd7883b34
@@ -857,9 +857,7 @@
|
||||
document.querySelector('#submit-btn span').style.display = 'inline-block';
|
||||
|
||||
let postUrl = '';
|
||||
if (window.location.href.includes('form-waiting')) {
|
||||
intervalId = setTimeout(checkExecutionStatus, interval);
|
||||
} else {
|
||||
if (!window.location.href.includes('form-waiting')) {
|
||||
postUrl = window.location.search;
|
||||
}
|
||||
|
||||
@@ -880,7 +878,8 @@
|
||||
|
||||
if(json?.formWaitingUrl) {
|
||||
formWaitingUrl = json.formWaitingUrl;
|
||||
intervalId = setTimeout(checkExecutionStatus, interval);
|
||||
clearTimeout(timeoutId);
|
||||
timeoutId = setTimeout(checkExecutionStatus, interval);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -934,6 +933,12 @@
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.error('Error:', error);
|
||||
})
|
||||
.finally(() => {
|
||||
if (window.location.href.includes('form-waiting')) {
|
||||
clearTimeout(timeoutId);
|
||||
timeoutId = setTimeout(checkExecutionStatus, interval);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user