From 9a98ac50ff50dda2f2eed1ea825352c50c64440e Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Fri, 7 May 2021 23:39:20 +0300 Subject: initial --- src/launcher.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/launcher.php (limited to 'src/launcher.php') diff --git a/src/launcher.php b/src/launcher.php new file mode 100644 index 0000000..d1b9892 --- /dev/null +++ b/src/launcher.php @@ -0,0 +1,31 @@ +status != Job::STATUS_RUNNING) + throw new RuntimeException("job status is {$job->status}"); + +try { + if ($job->run() !== false) + $job = true; +} catch (Exception $e) { + fprintf(STDERR, $e.''); + exit(1); +} \ No newline at end of file -- cgit v1.2.3