From 49c724c4582d5adb890d3b119110439f1a3218d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Thu, 17 Feb 2022 16:13:21 +0100 Subject: [PATCH] add jobrunner cli --- queue_job/jobrunner/__main__.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 queue_job/jobrunner/__main__.py diff --git a/queue_job/jobrunner/__main__.py b/queue_job/jobrunner/__main__.py new file mode 100644 index 0000000000..8f9628c5db --- /dev/null +++ b/queue_job/jobrunner/__main__.py @@ -0,0 +1,13 @@ +import odoo + +from .runner import QueueJobRunner + + +def main(): + odoo.tools.config.parse_config() + runner = QueueJobRunner.from_environ_or_config() + runner.run() + + +if __name__ == "__main__": + main()