You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Weird things can happen when updating or deleting rules whilst the rule handler is running. I've seen people having to nuke their Maintainerr data as we've managed to get into an invalid state.
When a rule is updated, if any of the following has happened, we delete the collection media and then the Plex collection. This is one of the main trouble areas:
Library changes
Media type changes
Manual collection settings changed
Couple of ideas to resolve:
Add checks in relevant places in the rule handler to verify if the rule still exists prior to any mutations.
Load all of the required data upfront and pass into rule handling. This would allow rule updates whilst handling is in progress as we won't be hitting the DB.
If the above is not possible, we could prompt to stop the rule handler when performing an update/delete (requires the below).
Add the ability to stop the rule handler from running. This should be pretty simple as I imagine most of the time is spent within executeRulesWithData, and nothing destructive happens in here. The only place we won't be able to stop is within handleCollection as that does mutate data. As an aside to this, we should enable lifecycle hooks in Nest.js so we can stop any in-progress tasks gracefully.
Uh oh!
There was an error while loading. Please reload this page.
Weird things can happen when updating or deleting rules whilst the rule handler is running. I've seen people having to nuke their Maintainerr data as we've managed to get into an invalid state.
When a rule is updated, if any of the following has happened, we delete the collection media and then the Plex collection. This is one of the main trouble areas:
Couple of ideas to resolve:
executeRulesWithData
, and nothing destructive happens in here. The only place we won't be able to stop is withinhandleCollection
as that does mutate data. As an aside to this, we should enable lifecycle hooks in Nest.js so we can stop any in-progress tasks gracefully.Related issues:
The text was updated successfully, but these errors were encountered: