diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-06-12 21:53:35 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-06-12 21:53:35 +0200 |
commit | 2d72ff8fc9dc0980a75cd427ad11a2c1d3ea3c73 (patch) | |
tree | f9cec0da5ac910126d2667b55ec0414cb56e55a1 /lib/Travelynx/Command/work.pm | |
parent | 0b725cbf6649608e6b29e38f9eb081fc8a37257a (diff) |
use 'maintenance' file to stop background jobs when running DB upgrades
Diffstat (limited to 'lib/Travelynx/Command/work.pm')
-rw-r--r-- | lib/Travelynx/Command/work.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm index 8ae918e..c9ac9b7 100644 --- a/lib/Travelynx/Command/work.pm +++ b/lib/Travelynx/Command/work.pm @@ -32,6 +32,10 @@ sub run { for my $entry ( $self->app->in_transit->get_all_active ) { + if ( -e 'maintenance' ) { + return; + } + my $uid = $entry->{user_id}; my $dep = $entry->{dep_eva}; my $arr = $entry->{arr_eva}; |