Skip to content
Snippets Groups Projects
Unverified Commit f9664856 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

work: _really_ do not execute any database actions in maintenance mode

parent 2d72ff8f
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,11 @@ sub run {
my $checkin_deadline = $now->clone->subtract( hours => 48 );
my $json = JSON->new;
if ( -e 'maintenance' ) {
$self->app->log->debug('maintenance mode, quitting ');
return;
}
my $num_incomplete = $self->app->in_transit->delete_incomplete_checkins(
earlier_than => $checkin_deadline );
......@@ -33,6 +38,7 @@ sub run {
for my $entry ( $self->app->in_transit->get_all_active ) {
if ( -e 'maintenance' ) {
$self->app->log->debug('maintenance mode, quitting ');
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment