Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] queue_job_cron: Migration to 18.0 #693

Merged
merged 50 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
a1f2c73
[ADD] add new module to execute ir_cron as queue_job
Dec 20, 2017
e8cc40d
Improve tests coverage
Dec 21, 2017
1d56c00
queue_job_cron: do not require read access to ir.cron
sbidoul Feb 9, 2018
71a6b6d
queue_job_cron: bump version
sbidoul Feb 13, 2018
4c3a230
[MIG] Queue Job Cron to 12.0
ThomasBinsfeld Jan 8, 2019
787d93b
[UPD] Update queue_job_cron.pot
oca-travis Mar 15, 2019
4d73ed2
[ADD] icon.png
OCA-git-bot Apr 2, 2019
3f59ede
Added translation using Weblate (German)
marylla Jul 4, 2019
77f1d39
Translated using Weblate (German)
marylla Jul 12, 2019
339f8db
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Jul 25, 2019
c4937b8
Translated using Weblate (Chinese (Simplified))
liweijie0812 Jul 25, 2019
497c4f6
[UPD] README.rst
OCA-git-bot Jul 29, 2019
d172e1c
Rename Chinese translation files
liweijie0812 Aug 30, 2019
7ef5fdd
Set modules as uninstallable
guewen Oct 1, 2019
c654c61
Migrate queue_job_cron to 13.0
guewen Oct 1, 2019
7e7ad0f
Run pre-commit with black, isort, ...
guewen Oct 4, 2019
951683e
[UPD] Update queue_job_cron.pot
oca-travis Oct 15, 2019
05ccae5
[UPD] README.rst
OCA-git-bot Oct 15, 2019
3ddafeb
pre-commit update
OCA-git-bot Mar 7, 2020
3e363eb
queue_job_cron: remove `@job` decorator
guewen Nov 2, 2020
ae541d9
queue_job_cron 13.0.2.0.0
OCA-git-bot Nov 12, 2020
d374df9
Fix channel name in jobs delayed for crons
guewen Nov 6, 2020
db9036c
queue_job_cron 13.0.2.1.0
OCA-git-bot Nov 20, 2020
4898be7
[MIG] init V14 repo
sebastienbeau Nov 20, 2020
b88aaa6
[IMP] : black, isort, prettier
sebastienbeau Nov 20, 2020
17d029c
[MIG] Bump version. Set module installable. Check migration guide.
codingforfun Feb 25, 2021
b2e7214
[FIX] Respect `cron.user_id` for manually triggered queue jobs
codingforfun Feb 25, 2021
10f8e89
[UPD] Update queue_job_cron.pot
oca-travis Apr 22, 2021
f4f186a
[UPD] README.rst
OCA-git-bot Apr 22, 2021
12efe9d
Set modules as uninstallable
guewen Nov 1, 2021
4099bbb
[MIG][15.0] queue_job_cron to version 15.0
JoanMForgeFlow Mar 1, 2022
48dfa3d
[UPD] Update queue_job_cron.pot
Apr 29, 2022
4911fa3
[UPD] README.rst
OCA-git-bot Apr 29, 2022
2aed254
Initialize 16.0
sbidoul Oct 3, 2022
92180c5
[MIG][15.0] queue_job_cron to version 15.0
JoanMForgeFlow Mar 1, 2022
7a092e4
[MIG] queue_job_cron: Migration to 16.0
baimont Aug 31, 2022
e1b9a25
[UPD] README.rst
OCA-git-bot Nov 22, 2022
5f7f42d
Added translation using Weblate (Spanish)
kikopeiro Aug 29, 2023
394d6bc
[UPD] README.rst
OCA-git-bot Sep 3, 2023
615b222
Translated using Weblate (Spanish)
kikopeiro Aug 29, 2023
725eb3b
Update translation files
weblate Oct 9, 2023
591c404
[IMP] queue_job_cron: Pre-commit auto fixes
nguyenminhchien Jan 10, 2024
d7bcafd
[MIG] queue_job_cron: Migration to 17.0
nguyenminhchien Jan 10, 2024
8afaa89
[UPD] Update queue_job_cron.pot
Jan 25, 2024
9659373
[BOT] post-merge updates
OCA-git-bot Jan 25, 2024
f8985af
Added translation using Weblate (Italian)
mymage Feb 4, 2024
e7c4f49
Translated using Weblate (Italian)
mymage Feb 4, 2024
04fa5a7
[13.0][FIX] queue_job_cron: channel_id must be storable.
LoisRForgeFlow Jun 11, 2021
97ed569
[IMP] queue_job_cron: Avoid parallel run
lmignon Dec 21, 2023
34f6a00
[MIG] queue_job_cron: Migration to 18.0
QuocDuong1306 Sep 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 108 additions & 0 deletions queue_job_cron/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
===============================
Scheduled Actions as Queue Jobs
===============================

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

.. |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%2Fqueue-lightgray.png?logo=github
:target: https://github.com/OCA/queue/tree/18.0/queue_job_cron
:alt: OCA/queue
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/queue-18-0/queue-18-0-queue_job_cron
: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=18.0
:alt: Try me on Runboat

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

This module extends the functionality of queue_job and allows to run an
Odoo cron as a queue job.

**Table of contents**

.. contents::
:local:

Installation
============

To install this module, you need to:

1. Just install it.

Usage
=====

To use this module, you need to:

#. Go to a scheduled action, a flag "Run as queue job" will allow you to
run the action as a queue job. You will also allowed to select a channel
of its execution. To configure dedicated channels please refers to
queue_job help:
https://github.com/OCA/queue/blob/12.0/queue_job/README.rst

Channels can be used to manage sequential jobs and prevent concurrency
accesses. To do that you just have to define a channel per cron limited
to 1 at time.

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%0Aversion:%2018.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
-------

* ACSONE SA/NV

Contributors
------------

- Cédric Pigeon <[email protected]>
- Nguyen Minh Chien <[email protected]>
- Tran Quoc duong <[email protected]>
- Vo Hong Thien <[email protected]>

Other credits
-------------

The migration of this module from 17.0 to 18.0 was financially supported
by Camptocamp.

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/queue <https://github.com/OCA/queue/tree/18.0/queue_job_cron>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions queue_job_cron/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
14 changes: 14 additions & 0 deletions queue_job_cron/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2019 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)

{
"name": "Scheduled Actions as Queue Jobs",
"version": "18.0.1.0.0",
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/queue",
"license": "AGPL-3",
"category": "Generic Modules",
"depends": ["queue_job"],
"data": ["data/data.xml", "views/ir_cron_view.xml"],
"installable": True,
}
12 changes: 12 additions & 0 deletions queue_job_cron/data/data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record model="queue.job.channel" id="channel_root_ir_cron">
<field name="name">ir_cron</field>
<field name="parent_id" ref="queue_job.channel_root" />
</record>
<record model="queue.job.function" id="job_function_ir_cron_run_job_as_queue_job">
<field name="model_id" ref="base.model_ir_cron" />
<field name="method">_compute_run_as_queue_job</field>
<field name="channel_id" ref="channel_root_ir_cron" />
</record>
</odoo>
39 changes: 39 additions & 0 deletions queue_job_cron/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * queue_job_cron
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-07-12 14:43+0000\n"
"Last-Translator: Maria Sparenberg <[email protected]>\n"
"Language-Team: none\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.7.1\n"

#. module: queue_job_cron
#: model:ir.model.fields,field_description:queue_job_cron.field_ir_cron__channel_id
msgid "Channel"
msgstr "Kanal"

#. module: queue_job_cron
#: model:ir.model.fields,field_description:queue_job_cron.field_ir_cron__run_as_queue_job
msgid "Run As Queue Job"
msgstr "als Warteschlangen-Job ausführen"

#. module: queue_job_cron
#: model:ir.model,name:queue_job_cron.model_ir_cron
msgid "Scheduled Actions"
msgstr "Eingeplante Aktionen"

#. module: queue_job_cron
#: model:ir.model.fields,help:queue_job_cron.field_ir_cron__run_as_queue_job
msgid "Specify if this cron should be ran as a queue job"
msgstr ""
"Bitte spezifizieren, ob der Cron-Job als Warteschlangen-Job ausgeführt "
"werden soll."
39 changes: 39 additions & 0 deletions queue_job_cron/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * queue_job_cron
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-09-03 13:40+0000\n"
"Last-Translator: kikopeiro <[email protected]>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: queue_job_cron
#: model:ir.model.fields,field_description:queue_job_cron.field_ir_cron__channel_id
msgid "Channel"
msgstr "Canal"

#. module: queue_job_cron
#: model:ir.model.fields,field_description:queue_job_cron.field_ir_cron__run_as_queue_job
msgid "Run As Queue Job"
msgstr "Ejecutar como trabajo en cola"

#. module: queue_job_cron
#: model:ir.model,name:queue_job_cron.model_ir_cron
msgid "Scheduled Actions"
msgstr "Acciones planificadas"

#. module: queue_job_cron
#: model:ir.model.fields,help:queue_job_cron.field_ir_cron__run_as_queue_job
msgid "Specify if this cron should be ran as a queue job"
msgstr ""
"Especifica si esta acción planificada deberá ser ejecutada como un trabajo "
"en cola"
37 changes: 37 additions & 0 deletions queue_job_cron/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * queue_job_cron
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-02-05 00:26+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: queue_job_cron
#: model:ir.model.fields,field_description:queue_job_cron.field_ir_cron__channel_id
msgid "Channel"
msgstr "Canale"

#. module: queue_job_cron
#: model:ir.model.fields,field_description:queue_job_cron.field_ir_cron__run_as_queue_job
msgid "Run As Queue Job"
msgstr "Eseguire come lavoro in coda"

#. module: queue_job_cron
#: model:ir.model,name:queue_job_cron.model_ir_cron
msgid "Scheduled Actions"
msgstr "Azioni pianificate"

#. module: queue_job_cron
#: model:ir.model.fields,help:queue_job_cron.field_ir_cron__run_as_queue_job
msgid "Specify if this cron should be ran as a queue job"
msgstr "Indica se questo cron deve essere eseguito come un lavoro in coda"
34 changes: 34 additions & 0 deletions queue_job_cron/i18n/queue_job_cron.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * queue_job_cron
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: queue_job_cron
#: model:ir.model.fields,field_description:queue_job_cron.field_ir_cron__channel_id
msgid "Channel"
msgstr ""

#. module: queue_job_cron
#: model:ir.model.fields,field_description:queue_job_cron.field_ir_cron__run_as_queue_job
msgid "Run As Queue Job"
msgstr ""

#. module: queue_job_cron
#: model:ir.model,name:queue_job_cron.model_ir_cron
msgid "Scheduled Actions"
msgstr ""

#. module: queue_job_cron
#: model:ir.model.fields,help:queue_job_cron.field_ir_cron__run_as_queue_job
msgid "Specify if this cron should be ran as a queue job"
msgstr ""
37 changes: 37 additions & 0 deletions queue_job_cron/i18n/zh_CN.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * queue_job_cron
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-07-25 17:43+0000\n"
"Last-Translator: 黎伟杰 <[email protected]>\n"
"Language-Team: none\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 3.7.1\n"

#. module: queue_job_cron
#: model:ir.model.fields,field_description:queue_job_cron.field_ir_cron__channel_id
msgid "Channel"
msgstr "频道"

#. module: queue_job_cron
#: model:ir.model.fields,field_description:queue_job_cron.field_ir_cron__run_as_queue_job
msgid "Run As Queue Job"
msgstr "作为队列作业运行"

#. module: queue_job_cron
#: model:ir.model,name:queue_job_cron.model_ir_cron
msgid "Scheduled Actions"
msgstr "安排的动作"

#. module: queue_job_cron
#: model:ir.model.fields,help:queue_job_cron.field_ir_cron__run_as_queue_job
msgid "Specify if this cron should be ran as a queue job"
msgstr "指定此cron是否应作为队列作业运行"
1 change: 1 addition & 0 deletions queue_job_cron/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import ir_cron
Loading
Loading