feat: Add hardened error handling and retries (#2451)

- Closes #1830
 - Closes #2099
This commit is contained in:
Dermot Duffy
2026-06-30 17:45:12 -07:00
committed by dermotduffy
parent 4bc787e2b7
commit 47bcce93d3
182 changed files with 7877 additions and 4043 deletions
+7 -4
View File
@@ -50,7 +50,7 @@ export class AutomationsManager {
!this._api.getInitializationManager().isInitializedMandatory() ||
// Never execute automations if there's an error (as our automation loop
// avoidance -- which shows as an error -- would not work!).
this._api.getMessageManager().hasErrorMessage()
this._api.getIssueManager().getStateManager().hasFullCardIssue()
) {
return;
}
@@ -66,9 +66,12 @@ export class AutomationsManager {
++this._nestedAutomationExecutions;
if (this._nestedAutomationExecutions > MAX_NESTED_AUTOMATION_EXECUTIONS) {
this._api.getMessageManager().setMessageIfHigherPriority({
type: 'error',
message: localize('error.too_many_automations'),
this._api.getNotificationManager().setNotification({
heading: {
text: localize('error.too_many_automations'),
icon: 'mdi:alert',
severity: 'high',
},
});
return;
}