From 1f043d69e2b017150bf49d80f01ce20143890344 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Tue, 13 Mar 2018 16:40:59 -0400 Subject: Bug 1441181 - Step 8 - Add jobqueue command to entrypoint --- scripts/entrypoint.pl | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts') diff --git a/scripts/entrypoint.pl b/scripts/entrypoint.pl index 23578e257..5c981c5c2 100755 --- a/scripts/entrypoint.pl +++ b/scripts/entrypoint.pl @@ -10,6 +10,7 @@ use Bugzilla::Install::Util qw(install_string); use Bugzilla::Test::Util qw(create_user); use Bugzilla::DaemonControl qw( run_cereal_and_httpd + run_cereal_and_jobqueue assert_httpd assert_database assert_selenium on_finish on_exception ); @@ -89,6 +90,12 @@ sub cmd_httpd { exit $httpd_exit_f->get(); } +sub cmd_jobqueue { + check_data_dir(); + wait_for_db(); + exit run_cereal_and_jobqueue()->get; +} + sub cmd_dev_httpd { my $have_params = -f "/app/data/params"; assert_database->get(); -- cgit v1.2.3-24-g4f1b