odoo11-addon-base-cron-oneshot


Nameodoo11-addon-base-cron-oneshot JSON
Version 11.0.1.0.0.99.dev10 PyPI version JSON
download
home_pagehttps://github.com/OCA/server-tools
SummaryAllows creating of single-use disposable crons.
upload_time2024-02-17 06:22:05
maintainer
docs_urlNone
authorCamptocamp, Odoo Community Association (OCA)
requires_python>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
licenseAGPL-3
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ============
Oneshot cron
============

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |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%2Fserver--tools-lightgray.png?logo=github
    :target: https://github.com/OCA/server-tools/tree/11.0/base_cron_oneshot
    :alt: OCA/server-tools
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/server-tools-11-0/server-tools-11-0-base_cron_oneshot
    :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/server-tools&target_branch=11.0
    :alt: Try me on Runboat

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

This module extends the functionality of Odoo crons
to allow you to create single-purpose crons without any further setup or modules
such as `queue_job`.

The typical use case is: you have an expensive task to run on demand and only once.

A main cron called "Oneshot cron cleanup" will delete already executed crons each day.
You might want to tune it according to your needs.

**Table of contents**

.. contents::
   :local:

Usage
=====

You can create crons as usual via the admin interface or via code.
The important thing, in both case, is to set `oneshot` flag as true.

**Developer shortcut**

You can easily create a oneshot cron like this:

.. code-block:: python

  cron = self.env['ir.cron'].schedule_oneshot(
      'res.partner', method='my_cron_method')

If you need to customize other parameters you can pass them as keyword args:

.. code-block:: python

  my_values = {...}
  cron = self.env['ir.cron'].schedule_oneshot(
      'res.partner', method='my_cron_method', **my_values)

Changelog
=========

11.0.1.0.0 (2018-08-30)
~~~~~~~~~~~~~~~~~~~~~~~

* First release

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/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/server-tools/issues/new?body=module:%20base_cron_oneshot%0Aversion:%2011.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

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

* Simone Orsi <simone.orsi@camptocamp.com>
* Artem Kostyuk <a.kostyuk@mobilunity.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.

This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/11.0/base_cron_oneshot>`_ 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/server-tools",
    "name": "odoo11-addon-base-cron-oneshot",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
    "maintainer_email": "",
    "keywords": "",
    "author": "Camptocamp, Odoo Community Association (OCA)",
    "author_email": "support@odoo-community.org",
    "download_url": "",
    "platform": null,
    "description": "============\nOneshot cron\n============\n\n.. \n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n   !! This file is generated by oca-gen-addon-readme !!\n   !! changes will be overwritten.                   !!\n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n   !! source digest: sha256:de67bbd025c49df2bf3b196a4300e31ee9ed2042cf628b9a094a8073631aec9e\n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png\n    :target: https://odoo-community.org/page/development-status\n    :alt: Beta\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%2Fserver--tools-lightgray.png?logo=github\n    :target: https://github.com/OCA/server-tools/tree/11.0/base_cron_oneshot\n    :alt: OCA/server-tools\n.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png\n    :target: https://translation.odoo-community.org/projects/server-tools-11-0/server-tools-11-0-base_cron_oneshot\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/server-tools&target_branch=11.0\n    :alt: Try me on Runboat\n\n|badge1| |badge2| |badge3| |badge4| |badge5|\n\nThis module extends the functionality of Odoo crons\nto allow you to create single-purpose crons without any further setup or modules\nsuch as `queue_job`.\n\nThe typical use case is: you have an expensive task to run on demand and only once.\n\nA main cron called \"Oneshot cron cleanup\" will delete already executed crons each day.\nYou might want to tune it according to your needs.\n\n**Table of contents**\n\n.. contents::\n   :local:\n\nUsage\n=====\n\nYou can create crons as usual via the admin interface or via code.\nThe important thing, in both case, is to set `oneshot` flag as true.\n\n**Developer shortcut**\n\nYou can easily create a oneshot cron like this:\n\n.. code-block:: python\n\n  cron = self.env['ir.cron'].schedule_oneshot(\n      'res.partner', method='my_cron_method')\n\nIf you need to customize other parameters you can pass them as keyword args:\n\n.. code-block:: python\n\n  my_values = {...}\n  cron = self.env['ir.cron'].schedule_oneshot(\n      'res.partner', method='my_cron_method', **my_values)\n\nChangelog\n=========\n\n11.0.1.0.0 (2018-08-30)\n~~~~~~~~~~~~~~~~~~~~~~~\n\n* First release\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/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/server-tools/issues/new?body=module:%20base_cron_oneshot%0Aversion:%2011.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\n\nContributors\n~~~~~~~~~~~~\n\n* Simone Orsi <simone.orsi@camptocamp.com>\n* Artem Kostyuk <a.kostyuk@mobilunity.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\nThis module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/11.0/base_cron_oneshot>`_ project on GitHub.\n\nYou are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.\n\n\n",
    "bugtrack_url": null,
    "license": "AGPL-3",
    "summary": "Allows creating of single-use disposable crons.",
    "version": "11.0.1.0.0.99.dev10",
    "project_urls": {
        "Homepage": "https://github.com/OCA/server-tools"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "65ede37e1032b8c7352f6996b978b6c38e9801f69b248fe669b58b9b299532e4",
                "md5": "169eb142586472e1690146a8705d01ea",
                "sha256": "89a348f1f202d4d34e1d1b8a5d89a4afcd563a08ad43bab5728562c438df4fb7"
            },
            "downloads": -1,
            "filename": "odoo11_addon_base_cron_oneshot-11.0.1.0.0.99.dev10-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "169eb142586472e1690146a8705d01ea",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
            "size": 27013,
            "upload_time": "2024-02-17T06:22:05",
            "upload_time_iso_8601": "2024-02-17T06:22:05.682629Z",
            "url": "https://files.pythonhosted.org/packages/65/ed/e37e1032b8c7352f6996b978b6c38e9801f69b248fe669b58b9b299532e4/odoo11_addon_base_cron_oneshot-11.0.1.0.0.99.dev10-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-17 06:22:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "OCA",
    "github_project": "server-tools",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "odoo11-addon-base-cron-oneshot"
}
        
Elapsed time: 0.33032s