Skip to content
Snippets Groups Projects

Issue #3436993 stager exceptions handling

1 unresolved thread
Files
2
@@ -84,7 +84,11 @@ final class BatchProcessor {
@@ -84,7 +84,11 @@ final class BatchProcessor {
static::getStage()->claim($stage_id)->stage();
static::getStage()->claim($stage_id)->stage();
}
}
catch (\Throwable $e) {
catch (\Throwable $e) {
static::clean($stage_id, $context);
// If the stage was not already destroyed because of this exception
 
// destroy it.
 
if (!static::getStage()->isAvailable()) {
 
static::clean($stage_id, $context);
 
}
static::handleException($e, $context);
static::handleException($e, $context);
}
}
}
}
Loading