Open
Description
I just encountered an issue where one of my projection was in an invalid state after being interrupted during previous run. The state of the projection was not saved to the database correctly
I believe the projection commands in this bundle could and should catch interruption signals like Ctrl+C and shutdown correctly when it happens using pcntl_signal
function. Something like this (by @prolic):
pcntl_signal(SIGINT, function () use ($projection) {
$projection->stop();
});
I'm not using the projection commands from this bundle at the moment but I'm going to refactor my project to use them soon. I might take a look into this then too.
Any tips what I should be aware of? I never tried working with pcntl_signal
function until now.
Metadata
Assignees
Labels
No labels
Activity