{ "info": { "author": "Camptocamp, Odoo Community Association (OCA)", "author_email": "support@odoo-community.org", "bugtrack_url": null, "classifiers": [ "Framework :: Odoo", "License :: OSI Approved :: GNU Affero General Public License v3", "Programming Language :: Python" ], "description": "============\nOneshot cron\n============\n\n.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n !! This file is generated by oca-gen-addon-readme !!\n !! changes will be overwritten. !!\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/runbot-Try%20me-875A7B.png\n :target: https://runbot.odoo-community.org/runbot/149/11.0\n :alt: Try me on Runbot\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 `_.\nIn case of trouble, please check there if your issue has already been reported.\nIf you spotted it first, help us smashing it by providing a detailed and welcomed\n`feedback `_.\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 \n* Artem Kostyuk \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 `_ project on GitHub.\n\nYou are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/OCA/server-tools", "keywords": "", "license": "AGPL-3", "maintainer": "", "maintainer_email": "", "name": "odoo11-addon-base-cron-oneshot", "package_url": "https://pypi.org/project/odoo11-addon-base-cron-oneshot/", "platform": "", "project_url": "https://pypi.org/project/odoo11-addon-base-cron-oneshot/", "project_urls": { "Homepage": "https://github.com/OCA/server-tools" }, "release_url": "https://pypi.org/project/odoo11-addon-base-cron-oneshot/11.0.1.0.0.99.dev7/", "requires_dist": [ "odoo (<11.1dev,>=11.0a)" ], "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "summary": "Allows creating of single-use disposable crons.", "version": "11.0.1.0.0.99.dev7" }, "last_serial": 5605230, "releases": { "11.0.1.0.0.99.dev6": [ { "comment_text": "", "digests": { "md5": "5f83ce96f1f94346b87733e1e6fe5bce", "sha256": "292b867af19e5f593e40d4c665cbd7a30ee50884538081dd154368df06a9ca64" }, "downloads": -1, "filename": "odoo11_addon_base_cron_oneshot-11.0.1.0.0.99.dev6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5f83ce96f1f94346b87733e1e6fe5bce", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 26663, "upload_time": "2019-05-12T05:01:21", "url": "https://files.pythonhosted.org/packages/16/c0/eef74eff324e9a8c8a75a86f58396d170dd10edf98c3b72f3e156062a229/odoo11_addon_base_cron_oneshot-11.0.1.0.0.99.dev6-py2.py3-none-any.whl" } ], "11.0.1.0.0.99.dev7": [ { "comment_text": "", "digests": { "md5": "b08b44c653bc51f5e6d5878ef7044c6d", "sha256": "03dd0bf11f5289250ed95f87400691419d7c05ee89265d71cc1e1c2c23271cc4" }, "downloads": -1, "filename": "odoo11_addon_base_cron_oneshot-11.0.1.0.0.99.dev7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b08b44c653bc51f5e6d5878ef7044c6d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 26656, "upload_time": "2019-07-30T05:41:13", "url": "https://files.pythonhosted.org/packages/d0/b0/8db8a28bccfc7cb01387fba66b408e230067f69a86cadab78aaa38d3a88e/odoo11_addon_base_cron_oneshot-11.0.1.0.0.99.dev7-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b08b44c653bc51f5e6d5878ef7044c6d", "sha256": "03dd0bf11f5289250ed95f87400691419d7c05ee89265d71cc1e1c2c23271cc4" }, "downloads": -1, "filename": "odoo11_addon_base_cron_oneshot-11.0.1.0.0.99.dev7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b08b44c653bc51f5e6d5878ef7044c6d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 26656, "upload_time": "2019-07-30T05:41:13", "url": "https://files.pythonhosted.org/packages/d0/b0/8db8a28bccfc7cb01387fba66b408e230067f69a86cadab78aaa38d3a88e/odoo11_addon_base_cron_oneshot-11.0.1.0.0.99.dev7-py2.py3-none-any.whl" } ] }