odoo14-addon-queue-job-cron-jobrunner


Nameodoo14-addon-queue-job-cron-jobrunner JSON
Version 14.0.1.0.3 PyPI version JSON
download
home_pagehttps://github.com/OCA/queue
SummaryRun jobs without a dedicated JobRunner
upload_time2024-09-12 09:06:36
maintainerNone
docs_urlNone
authorCamptocamp SA, Odoo Community Association (OCA)
requires_python>=3.6
licenseAGPL-3
keywords
VCS
bugtrack_url
requirements requests
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ========================
Queue Job Cron Jobrunner
========================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:fd150cf9184414884a899c2d671ef9753081aa55283237d1b1b188a486ad96dc
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
    :target: https://odoo-community.org/page/development-status
    :alt: Alpha
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
    :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fqueue-lightgray.png?logo=github
    :target: https://github.com/OCA/queue/tree/14.0/queue_job_cron_jobrunner
    :alt: OCA/queue
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/queue-14-0/queue-14-0-queue_job_cron_jobrunner
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/queue&target_branch=14.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module implements a simple ``queue.job`` runner using ``ir.cron`` triggers.

It's meant to be used on environments where the regular job runner can't be run, like
on Odoo.sh.

Unlike the regular job runner, where jobs are dispatched to the HttpWorkers, jobs are
processed on the CronWorker threads by the job runner crons. This is a design decision
because:

* Odoo.sh puts HttpWorkers to sleep when there's no network activity
* HttpWorkers are meant for traffic. Users shouldn't pay the price of background tasks.

For now, it only implements the most basic features of the ``queue_job`` runner, notably
no channel capacity nor priorities. Please check the ROADMAP for further details.

.. IMPORTANT::
   This is an alpha version, the data model and design can change at any time without warning.
   Only for development or testing purpose, do not use in production.
   `More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
   :local:

Configuration
=============

.. warning::

    Don't use this module if you're already running the regular ``queue_job`` runner.


For the easiest case, no configuration is required besides installing the module.

To avoid CronWorker CPU timeout from abruptly stopping the job processing cron, it's
recommended to launch Odoo with ``--limit-time-real-cron=0``, to disable the CronWorker
timeout altogether.

.. note::

    In Odoo.sh, this is done by default.


Parallel execution of jobs can be achieved by leveraging multiple ``ir.cron`` records:

* Make sure you have enough CronWorkers available (Odoo CLI ``--max-cron-threads``)
* Duplicate the ``queue_job_cron`` cron record as many times as needed, until you have
  as much records as cron workers.

Known issues / Roadmap
======================

* Support channel capacity and priority. (See ``_acquire_one_job``)
* Gracefully handle CronWorker CPU timeouts. (See ``_job_runner``)
* Commit transaction after job state updated to started. (See ``_process``)

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/queue/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/queue/issues/new?body=module:%20queue_job_cron_jobrunner%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Camptocamp SA

Contributors
~~~~~~~~~~~~

* `Camptocamp <https://www.camptocamp.com>`_

    * Iván Todorovich <ivan.todorovich@camptocamp.com>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-ivantodorovich| image:: https://github.com/ivantodorovich.png?size=40px
    :target: https://github.com/ivantodorovich
    :alt: ivantodorovich

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-ivantodorovich| 

This module is part of the `OCA/queue <https://github.com/OCA/queue/tree/14.0/queue_job_cron_jobrunner>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/OCA/queue",
    "name": "odoo14-addon-queue-job-cron-jobrunner",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Camptocamp SA, Odoo Community Association (OCA)",
    "author_email": "support@odoo-community.org",
    "download_url": null,
    "platform": null,
    "description": "========================\nQueue Job Cron Jobrunner\n========================\n\n.. \n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n   !! This file is generated by oca-gen-addon-readme !!\n   !! changes will be overwritten.                   !!\n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n   !! source digest: sha256:fd150cf9184414884a899c2d671ef9753081aa55283237d1b1b188a486ad96dc\n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png\n    :target: https://odoo-community.org/page/development-status\n    :alt: Alpha\n.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png\n    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html\n    :alt: License: AGPL-3\n.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fqueue-lightgray.png?logo=github\n    :target: https://github.com/OCA/queue/tree/14.0/queue_job_cron_jobrunner\n    :alt: OCA/queue\n.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png\n    :target: https://translation.odoo-community.org/projects/queue-14-0/queue-14-0-queue_job_cron_jobrunner\n    :alt: Translate me on Weblate\n.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png\n    :target: https://runboat.odoo-community.org/builds?repo=OCA/queue&target_branch=14.0\n    :alt: Try me on Runboat\n\n|badge1| |badge2| |badge3| |badge4| |badge5|\n\nThis module implements a simple ``queue.job`` runner using ``ir.cron`` triggers.\n\nIt's meant to be used on environments where the regular job runner can't be run, like\non Odoo.sh.\n\nUnlike the regular job runner, where jobs are dispatched to the HttpWorkers, jobs are\nprocessed on the CronWorker threads by the job runner crons. This is a design decision\nbecause:\n\n* Odoo.sh puts HttpWorkers to sleep when there's no network activity\n* HttpWorkers are meant for traffic. Users shouldn't pay the price of background tasks.\n\nFor now, it only implements the most basic features of the ``queue_job`` runner, notably\nno channel capacity nor priorities. Please check the ROADMAP for further details.\n\n.. IMPORTANT::\n   This is an alpha version, the data model and design can change at any time without warning.\n   Only for development or testing purpose, do not use in production.\n   `More details on development status <https://odoo-community.org/page/development-status>`_\n\n**Table of contents**\n\n.. contents::\n   :local:\n\nConfiguration\n=============\n\n.. warning::\n\n    Don't use this module if you're already running the regular ``queue_job`` runner.\n\n\nFor the easiest case, no configuration is required besides installing the module.\n\nTo avoid CronWorker CPU timeout from abruptly stopping the job processing cron, it's\nrecommended to launch Odoo with ``--limit-time-real-cron=0``, to disable the CronWorker\ntimeout altogether.\n\n.. note::\n\n    In Odoo.sh, this is done by default.\n\n\nParallel execution of jobs can be achieved by leveraging multiple ``ir.cron`` records:\n\n* Make sure you have enough CronWorkers available (Odoo CLI ``--max-cron-threads``)\n* Duplicate the ``queue_job_cron`` cron record as many times as needed, until you have\n  as much records as cron workers.\n\nKnown issues / Roadmap\n======================\n\n* Support channel capacity and priority. (See ``_acquire_one_job``)\n* Gracefully handle CronWorker CPU timeouts. (See ``_job_runner``)\n* Commit transaction after job state updated to started. (See ``_process``)\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues <https://github.com/OCA/queue/issues>`_.\nIn case of trouble, please check there if your issue has already been reported.\nIf you spotted it first, help us to smash it by providing a detailed and welcomed\n`feedback <https://github.com/OCA/queue/issues/new?body=module:%20queue_job_cron_jobrunner%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.\n\nDo not contact contributors directly about support or help with technical issues.\n\nCredits\n=======\n\nAuthors\n~~~~~~~\n\n* Camptocamp SA\n\nContributors\n~~~~~~~~~~~~\n\n* `Camptocamp <https://www.camptocamp.com>`_\n\n    * Iv\u00e1n Todorovich <ivan.todorovich@camptocamp.com>\n\nMaintainers\n~~~~~~~~~~~\n\nThis module is maintained by the OCA.\n\n.. image:: https://odoo-community.org/logo.png\n   :alt: Odoo Community Association\n   :target: https://odoo-community.org\n\nOCA, or the Odoo Community Association, is a nonprofit organization whose\nmission is to support the collaborative development of Odoo features and\npromote its widespread use.\n\n.. |maintainer-ivantodorovich| image:: https://github.com/ivantodorovich.png?size=40px\n    :target: https://github.com/ivantodorovich\n    :alt: ivantodorovich\n\nCurrent `maintainer <https://odoo-community.org/page/maintainer-role>`__:\n\n|maintainer-ivantodorovich| \n\nThis module is part of the `OCA/queue <https://github.com/OCA/queue/tree/14.0/queue_job_cron_jobrunner>`_ project on GitHub.\n\nYou are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.\n",
    "bugtrack_url": null,
    "license": "AGPL-3",
    "summary": "Run jobs without a dedicated JobRunner",
    "version": "14.0.1.0.3",
    "project_urls": {
        "Homepage": "https://github.com/OCA/queue"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f633dde908d51d02eb46f3f7837a5ea2e90bf7e70368c9ab984f2c15579e4253",
                "md5": "e7e8aba594cbb75baa078de94139325d",
                "sha256": "f56031401859f9f6e2523f9b2e03781b7a83789f41d14bddf424d1039ecd4979"
            },
            "downloads": -1,
            "filename": "odoo14_addon_queue_job_cron_jobrunner-14.0.1.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e7e8aba594cbb75baa078de94139325d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 32646,
            "upload_time": "2024-09-12T09:06:36",
            "upload_time_iso_8601": "2024-09-12T09:06:36.394314Z",
            "url": "https://files.pythonhosted.org/packages/f6/33/dde908d51d02eb46f3f7837a5ea2e90bf7e70368c9ab984f2c15579e4253/odoo14_addon_queue_job_cron_jobrunner-14.0.1.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-12 09:06:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "OCA",
    "github_project": "queue",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "requests",
            "specs": []
        }
    ],
    "lcname": "odoo14-addon-queue-job-cron-jobrunner"
}
        
Elapsed time: 0.61809s