elsa-core/src/modules/Elsa.Retention
Matthew Vance aa989ce13d
Catch exceptions and log instead of crashing (#6477)
* Catch exceptions and log instead of crashing

Modified both WorkflowInstance and WorkflowDefinition state loading to prevent throwing exceptions if the state fails to load successfully.

Also modified the CleanupJob to catch exceptions thrown by cleaning up and logging as errors and continuing instead of crashing.

Fixes 6473

* Use LogError instead of LogWarning for deserialization failure.

Updated the log level to LogError when workflow definition state deserialization fails. This change ensures better visibility and prioritization of critical issues during state handling.

---------

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>
2025-03-18 19:27:04 +01:00
..
CleanupStrategies Allow to define cleanup strategy for workflow instances 2024-12-14 12:19:21 +08:00
Collectors Refactor retention module to use recurring tasks 2024-10-29 08:36:31 +01:00
Contracts Refactor retention module to use recurring tasks 2024-10-29 08:36:31 +01:00
Extensions Refactor retention module to use recurring tasks 2024-10-29 08:36:31 +01:00
Feature Allow to define cleanup strategy for workflow instances 2024-12-14 12:19:21 +08:00
Jobs Catch exceptions and log instead of crashing (#6477) 2025-03-18 19:27:04 +01:00
Models Retention Module (#5344) 2024-10-28 19:44:23 +01:00
Options Refactor retention module to use recurring tasks 2024-10-29 08:36:31 +01:00
Policies Refactor retention module to use recurring tasks 2024-10-29 08:36:31 +01:00
Tasks Add workflow restart functionality for handling interruptions 2025-02-22 15:10:52 +01:00
Elsa.Retention.csproj Retention Module (#5344) 2024-10-28 19:44:23 +01:00
Elsa.Retention.csproj.DotSettings Refactor retention module to use recurring tasks 2024-10-29 08:36:31 +01:00
FodyWeavers.xml Retention Module (#5344) 2024-10-28 19:44:23 +01:00