Loading lib/Travelynx/Command/traewelling.pm +12 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,8 @@ sub pull_sync { for my $account_data ( $self->app->traewelling->get_pull_accounts ) { if ( -e 'maintenance' ) { $self->app->log->debug( 'treawelling: "maintenance" file found, aborting'); return; } Loading Loading @@ -90,6 +92,8 @@ sub push_sync { for my $candidate ( $self->app->traewelling->get_pushable_accounts ) { if ( -e 'maintenance' ) { $self->app->log->debug( 'treawelling: "maintenance" file found, aborting'); return; } Loading Loading @@ -137,6 +141,12 @@ sub run { my $push_result; my $pull_result; if ( -e 'maintenance' ) { $self->app->log->debug( 'treawelling: "maintenance" file found, aborting'); return; } if ( not $direction or $direction eq 'push' ) { $push_result = $self->push_sync; } Loading @@ -150,6 +160,8 @@ sub run { my $trwl_pull_finished_at = DateTime->now( time_zone => 'Europe/Berlin' ); if ( -e 'maintenance' ) { $self->app->log->debug( 'treawelling: "maintenance" file found, aborting'); return; } Loading lib/Travelynx/Command/work.pm +2 −2 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ sub run { my $json = JSON->new; if ( -e 'maintenance' ) { $self->app->log->debug('maintenance mode, quitting '); $self->app->log->debug('work: "maintenance" file found, aborting'); return; } Loading @@ -38,7 +38,7 @@ sub run { for my $entry ( $self->app->in_transit->get_all_active ) { if ( -e 'maintenance' ) { $self->app->log->debug('maintenance mode, quitting '); $self->app->log->debug('work: "maintenance" file found, aborting'); return; } Loading Loading
lib/Travelynx/Command/traewelling.pm +12 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,8 @@ sub pull_sync { for my $account_data ( $self->app->traewelling->get_pull_accounts ) { if ( -e 'maintenance' ) { $self->app->log->debug( 'treawelling: "maintenance" file found, aborting'); return; } Loading Loading @@ -90,6 +92,8 @@ sub push_sync { for my $candidate ( $self->app->traewelling->get_pushable_accounts ) { if ( -e 'maintenance' ) { $self->app->log->debug( 'treawelling: "maintenance" file found, aborting'); return; } Loading Loading @@ -137,6 +141,12 @@ sub run { my $push_result; my $pull_result; if ( -e 'maintenance' ) { $self->app->log->debug( 'treawelling: "maintenance" file found, aborting'); return; } if ( not $direction or $direction eq 'push' ) { $push_result = $self->push_sync; } Loading @@ -150,6 +160,8 @@ sub run { my $trwl_pull_finished_at = DateTime->now( time_zone => 'Europe/Berlin' ); if ( -e 'maintenance' ) { $self->app->log->debug( 'treawelling: "maintenance" file found, aborting'); return; } Loading
lib/Travelynx/Command/work.pm +2 −2 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ sub run { my $json = JSON->new; if ( -e 'maintenance' ) { $self->app->log->debug('maintenance mode, quitting '); $self->app->log->debug('work: "maintenance" file found, aborting'); return; } Loading @@ -38,7 +38,7 @@ sub run { for my $entry ( $self->app->in_transit->get_all_active ) { if ( -e 'maintenance' ) { $self->app->log->debug('maintenance mode, quitting '); $self->app->log->debug('work: "maintenance" file found, aborting'); return; } Loading