From 16853fc9c7970bc0ab04f2da9e7ad6fc5896b653 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] [WIP] 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()