Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
179 commits
Select commit Hold shift + click to select a range
1946f89
Make tests pass
guewen Dec 29, 2016
d92c535
Fix implementation of related actions
guewen Dec 29, 2016
5764fbc
Move tests using queue_job.testing_method in test_queue_job
guewen Dec 30, 2016
15a450c
Fix mutability of job arguments
guewen Jan 2, 2017
1fc91b6
[IMP] Allow to override the channel to use when delaying a job
lmignon Mar 29, 2017
9bcab82
[FIX] domain to subscribe users
GillesTephaneMeyomesse May 26, 2017
fd590cd
[MIG] Make modules uninstallable
pedrobaeza Oct 2, 2017
5a53153
Set test_queue_job installable to work on tests
guewen Oct 2, 2017
8892045
PY3: replace im_class and so with __self__
guewen Oct 2, 2017
5e42be6
PY3: remove encode/decode in a test
guewen Oct 2, 2017
7a27784
Correct or disable pylint warnings
guewen May 25, 2018
553c54f
Fix auto registration of job methods and channels
guewen May 22, 2018
bd5adc8
Add default related action to open related records
guewen Jan 24, 2018
4d36133
[MIG] Make modules uninstallable
OCA-git-bot Sep 27, 2018
039a7a2
Migrate queue_job to 12.0
guewen Oct 1, 2018
9241847
[11.0] Forward port. of identity_key (from 10.0)
guewen Jun 28, 2018
76cc280
[UPD] Update test_queue_job.pot
oca-travis Dec 13, 2018
43ffd39
[ADD] icon.png
OCA-git-bot Apr 2, 2019
b83b3b8
[ADD] Test case for "AutoVacuum Job Queue" cron job
Aug 3, 2019
937ca2c
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Aug 31, 2019
877f5f1
Translated using Weblate (Chinese (Simplified))
liweijie0812 Aug 31, 2019
3ca09f1
Set modules as uninstallable
guewen Oct 1, 2019
fa024bc
Migrate queue_job
guewen Oct 1, 2019
7655a7a
Replace sudo(user) by with_user(user)
guewen Oct 1, 2019
fe34af5
Run pre-commit with black, isort, ...
guewen Oct 4, 2019
1a5db78
[UPD] Update test_queue_job.pot
oca-travis Oct 15, 2019
f1c96ba
Use more permissive license AGPL3 → LGPL3
guewen Oct 31, 2019
6ef1ccc
queue_job: allow to define vacuum removal interval per channel
Nov 7, 2019
3dd9e90
Move autovacuum tests in the same class
guewen Nov 8, 2019
f6f392c
[FIX] queue_job: vaccuum query must be based on channel complete name
Nov 27, 2019
022632d
Store worker's PID when a job is started
guewen Oct 1, 2020
54bdfa6
Deprecate job decorators
guewen Oct 30, 2020
00f794d
Replace job function name by model + method fields
guewen Nov 2, 2020
ea01081
test_queue_job 13.0.2.0.0
OCA-git-bot Nov 12, 2020
ee4dfda
test_queue_job 13.0.2.1.0
OCA-git-bot Nov 13, 2020
8a78c10
Refactor user_id,model_name,record_ids fields on queue.job
guewen Oct 29, 2020
4903353
Store 'su' flag in records stored in JobSerialized fields
guewen Nov 13, 2020
8698e7b
[MIG] init V14 repo
sebastienbeau Nov 20, 2020
1ad8c74
[IMP] : black, isort, prettier
sebastienbeau Nov 20, 2020
5260d49
[REF] remove deprecated feature
sebastienbeau Nov 20, 2020
e609d9b
[MIG] finish migration
sebastienbeau Nov 20, 2020
b6f7c75
Add import shortcut for identity_exact
guewen Nov 28, 2020
adf5c48
[UPD] Update test_queue_job.pot
oca-travis Nov 30, 2020
b016cf0
[REF] Replace deprecated assertEquals with assertEqual
PieterPaulussen Mar 23, 2021
3d2c848
[FIX] use __func__ for function comparison in tests
PieterPaulussen Apr 6, 2021
e4a9638
[IMP] Store job execution information + wizard to terminate a job + test
PieterPaulussen Mar 23, 2021
153cf14
[ADD] Apply suggestions from code review
Apr 20, 2021
e0716b9
[UPD] Update test_queue_job.pot
oca-travis May 4, 2021
64759fb
test_queue_job 14.0.1.1.0
OCA-git-bot May 4, 2021
de3c864
Update translation files
oca-transbot May 4, 2021
b537895
Revert "[14.0] [IMP] Store job execution information + wizard to term…
guewen May 11, 2021
a699b82
[UPD] Update test_queue_job.pot
oca-travis May 12, 2021
ab914a4
test_queue_job 14.0.1.2.0
OCA-git-bot May 12, 2021
1801a70
Update translation files
oca-transbot May 12, 2021
ab13629
Add method to patch a method to be automatically delayed
guewen Oct 28, 2020
2b501a4
test_queue_job 14.0.1.3.0
OCA-git-bot May 27, 2021
8baf70a
Set modules as uninstallable
guewen Nov 1, 2021
7a69303
Set modules queue_job and test_queue_job as installable
guewen Nov 1, 2021
06dffe8
Run pre-commit run -a
guewen Nov 1, 2021
c7bc8e9
[MIG] test_queue_job: Migration to 15.0
guewen Nov 1, 2021
7482c6b
[UPD] Update test_queue_job.pot
Nov 2, 2021
f7b41b3
[IMP] update dotfiles [ci skip]
OCA-git-bot Mar 31, 2022
0e07224
Initialize 16.0
sbidoul Oct 3, 2022
58309aa
[MIG] test_queue_job: Migration to 16.0
baimont Oct 11, 2022
89fc16d
[FIX] import mock from unittest
baimont Oct 11, 2022
cdee878
[UPD] Update test_queue_job.pot
Oct 11, 2022
7866617
[UPD] Update test_queue_job.pot
Oct 18, 2022
a257d69
Update translation files
weblate Oct 18, 2022
f0c946a
Disable storing of context in jobs recordsets by default
guewen May 12, 2022
6db1b9f
test_queue_job 16.0.1.0.1
OCA-git-bot Oct 26, 2022
f77b3bf
Added translation using Weblate (German)
marylla Nov 4, 2022
166516d
Translated using Weblate (German)
marylla Nov 4, 2022
5230fd9
Remove initial create notification and follower
guewen Feb 1, 2021
3920d1b
queue_job: add exec time to view some stats
simahawk Feb 8, 2021
7ea2a91
queue_job: add hook to customize stored values
simahawk Mar 29, 2021
a1ee085
queue_job: store exception name and message
simahawk Mar 29, 2021
416cc3f
[UPD] Update test_queue_job.pot
Oct 31, 2022
20de575
Update translation files
weblate Oct 31, 2022
40d353c
Store dependencies
guewen Jul 2, 2019
f4db666
Add wait dependencies state
guewen Jul 2, 2019
d549abe
Add API for Delayables
guewen Jul 5, 2019
ce99db1
Add a graph UUID
guewen May 26, 2021
4ef6e03
Ignore requeues on dependency jobs waiting on parent jobs
guewen May 26, 2021
07c7c0b
Fix warnings in tests
guewen May 27, 2021
e6e5c76
Improve display of jobs graph widget
guewen May 27, 2021
f5cd28d
Add powerful context manager for running tests on jobs
guewen May 28, 2021
b6aa1c7
Set graph_uuid only once in DelayableGraph
guewen May 30, 2021
9e38260
Add docstrings on the new delayable classes
guewen May 30, 2021
e28db48
Fix things required by odoo 14.0 or python 3.9
guewen Oct 26, 2022
f6b49c0
Rename mock_jobs() to trap_jobs()
guewen Feb 3, 2022
1d21664
Rename dependency method done() to on_done()
guewen Feb 3, 2022
28029e8
Apply pre-commit on migration of jobs graph
guewen Oct 24, 2022
6cb4c44
Use new TransactionCase instead of deprecated SavepointCase
guewen Oct 24, 2022
c25f392
[MIG] queue_job, test_queue_job: Forward port queue from 15.0
lmignon Nov 16, 2022
6609a71
test_queue_job 16.0.2.0.0
OCA-git-bot Nov 22, 2022
8c17d7f
Update translation files
weblate Nov 22, 2022
e79f80d
queue_job: unify no delay option
simahawk Feb 28, 2023
7e8fb9a
test_queue_job 16.0.2.1.0
OCA-git-bot Apr 2, 2023
ee2678f
Fix trap_jobs() recordset comparison
guewen May 9, 2023
7893ea9
test_queue_job 16.0.2.2.0
OCA-git-bot Jun 2, 2023
451ba81
Added translation using Weblate (Spanish)
Ivorra78 Oct 15, 2023
04cbecd
Translated using Weblate (Spanish)
Ivorra78 Oct 15, 2023
c0715c1
[IMP] queue_job: identity_key enhancements
Jun 16, 2023
a8e4adb
[BOT] post-merge updates
OCA-git-bot Nov 23, 2023
df7e193
[IMP] test_queue_job: pre-commit auto fixes
nguyenminhchien Nov 29, 2023
2dd6623
[MIG] test_queue_job: Migration to 17.0
nguyenminhchien Nov 29, 2023
742d228
[UPD] Update test_queue_job.pot
Dec 5, 2023
13d6aba
Update translation files
weblate Feb 3, 2024
fcc834a
Added translation using Weblate (Italian)
mymage Feb 4, 2024
566878c
Translated using Weblate (Italian)
mymage Feb 12, 2024
b901377
[MIG] queue_job_subscribe 10.0
sbidoul Sep 12, 2017
7fdfab2
[FIX] *queue_job: Pre-commit fixes
pedrobaeza May 1, 2024
d438c67
[IMP] queue_job_subscribe: style
sbidoul Sep 12, 2017
abdc8b6
[BOT] post-merge updates
OCA-git-bot May 1, 2024
c6cc3d0
[IMP] queue_job_subscribe: odoo tag in views
sbidoul Sep 12, 2017
89d5f33
Translated using Weblate (Chinese (Simplified) (zh_CN))
xtanuiha Jul 2, 2024
5457fa4
[IMP] queue_job_subscribe: improve README
sbidoul Sep 13, 2017
710589f
[14.0][IMP] queue_job current company
acsonefho Aug 2, 2021
bbdfd19
[MIG] Make modules uninstallable
pedrobaeza Oct 2, 2017
d38eb26
Update test with proper way to pass company to job
sbidoul Oct 18, 2022
6d3dd2c
Migrate queue_job_subscribe to v11
guewen Oct 3, 2017
89c296d
queue_job: fix retry format with tuple values
InigoGR Feb 1, 2024
3b234cb
Correct or disable pylint warnings
guewen May 25, 2018
6826d0b
[FIX] queue_job: missing flush
QuocDuong1306 Jul 29, 2024
450e2b3
[MIG] Make modules uninstallable
OCA-git-bot Sep 27, 2018
137ef6a
[IMP] queue_job: Cancel child jobs when the parent is cancelled
QuocDuong1306 Aug 1, 2024
2a59f0b
Migrate queue_job_subscribe to 13.0
guewen Oct 1, 2019
bb10c2f
[IMP] queue_job: Don't raise a warning for valid context
rousseldenis Aug 23, 2024
499c9e6
Run pre-commit with black, isort, ...
guewen Oct 4, 2019
82c0a3e
[MIG] test_queue_job: Migration to 18.0
QuocDuong1306 Sep 24, 2024
a13f55b
pre-commit update
OCA-git-bot Mar 7, 2020
a1b3d03
[UPD] Update test_queue_job.pot
Oct 15, 2024
a17de6f
[MIG] init V14 repo
sebastienbeau Nov 20, 2020
b5d35f2
[IMP] queue_job: perform_enqueued_jobs should filter the context
florentx Jan 17, 2025
b169ba3
[IMP] : black, isort, prettier
sebastienbeau Nov 20, 2020
7a84207
[IMP] queue_job: explain context in docstring
florentx Feb 4, 2025
d917947
[14.0][MIG] - queue_job_subscribe
sbejaoui Jul 9, 2021
6d34694
[BOT] post-merge updates
OCA-git-bot Mar 21, 2025
76742ee
[MIG] queue_job_subscribe: Migration to 15.0
SilvioC2C Jun 30, 2022
4d9135e
queue_job: fix references to tree views
simahawk Jul 17, 2025
001918e
[MIG] queue_job_subscribe: Migration to 16.0
ramiadavid May 26, 2023
9aad9ad
[BOT] post-merge updates
OCA-git-bot Jul 17, 2025
f1c4a21
[IMP] queue_job_subscribe: pre-commit auto fixes
ramiadavid Dec 12, 2023
003b1a8
[IMP] queue_job: remove DB commits within test of requeue
AnizR Jun 3, 2025
f7df83c
[MIG] queue_job_subscribe: Migration to 17.0
ramiadavid Dec 12, 2023
c059b5b
[BOT] post-merge updates
OCA-git-bot Sep 17, 2025
c5daf39
[UPD] Update queue_job_subscribe.pot
Jan 8, 2024
01a9a33
[MIG] Create 19.0 from 18.0 for Odoo 19.0
sbidoul Sep 26, 2025
12273e8
Translated using Weblate (Italian)
mymage Feb 4, 2024
f364d27
[MIG] queue_job: migrate + tests
milan-dd Jan 2, 2026
3406b04
Translated using Weblate (Chinese (Simplified) (zh_CN))
xtanuiha Jul 2, 2024
a1872ec
[UPD] Update test_queue_job.pot
Jan 4, 2026
eefcf47
Translated using Weblate (Portuguese (Brazil))
SottomaiorMacedoTec Jul 6, 2024
457d8e6
[IMP] queue_job: requeue orphaned jobs
hoangtrann Nov 21, 2025
beb4e1d
[MIG] queue_job_subscribe: Migration to 18.0
QuocDuong1306 Sep 24, 2024
3e6f9d4
[IMP] queue_job: query orphaned dead job not exist in lock table
hoangtrann Dec 31, 2025
dcd54ef
[UPD] queue_job_subscribe: Update disable tracking and use no_reset_p…
thienvh332 Oct 10, 2024
a4b00d3
[IMP] queue_job: refactor job acquisition
sbidoul Jan 2, 2026
9c1bf08
[UPD] Update queue_job_subscribe.pot
Oct 19, 2024
c9e2f20
queue_job: declare sbidoul as maintainer
sbidoul Jan 2, 2026
ca889a7
Update translation files
weblate Oct 19, 2024
00df28d
[IMP] queue_job: take weaker locks
sbidoul Jan 4, 2026
f1168d9
[MIG] Create 19.0 from 18.0 for Odoo 19.0
sbidoul Sep 26, 2025
e26ab11
[BOT] post-merge updates
OCA-git-bot Jan 8, 2026
e0afc25
[19.0] Port cron jobrunner and subscribe addons
dhongu Jun 18, 2026
5df9b9b
Skip check of dependencies when a done job has no dependents
guewen Feb 19, 2026
b47fe1b
[IMP] queue: pre-commit auto fixes after the 19.0 port
dhongu Oct 15, 2026
9f8c6a9
[BOT] post-merge updates
OCA-git-bot Apr 9, 2026
9f029a1
[IMP] queue_job_subscribe: pre-commit auto fixes
dhongu Nov 28, 2026
a2f0ab1
[MIG] queue_job_subscribe: Migration to 20.0
dhongu Nov 28, 2026
27f650f
[MIG] test_queue_job: Migration to 20.0
dhongu Nov 28, 2026
719231b
Merge branch '20.0-mig-queue_job_subscribe' into 20.0-mig-lot-oca
dhongu Nov 28, 2026
99a7845
Merge branch '20.0-mig-test_queue_job' into 20.0-mig-lot-oca
dhongu Nov 28, 2026
174b66a
[IMP] queue_job: align with OCA/queue 20.0
dhongu Nov 28, 2026
227fe96
[FIX] queue_job_cron_jobrunner: PG_CONCURRENCY_EXCEPTIONS_TO_RETRY
dhongu Nov 28, 2026
aa88bdb
[IMP] queue_job: pre-commit auto fixes
dhongu Nov 28, 2026
c024dfc
[IMP] test_queue_job: tests of OCA/queue#1021
dhongu Nov 28, 2026
95ea6e3
Merge branch '20.0-sync-queue_job-oca' into 20.0-mig-lot-oca
dhongu Nov 28, 2026
36a7b21
Merge branch '20.0-mig-test_queue_job' into 20.0-mig-lot-oca
dhongu Nov 28, 2026
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
2 changes: 1 addition & 1 deletion queue_job/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Job Queue
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:9310ffeb8c7cc9466fe499b49ab3d7f8da8bd13d2dd9a3f6cc3f3b2fa2f852e3
!! source digest: sha256:8fe930e0d2082bf352442794a848d2931d0f853a2f5e1b0d066f10d4c68fb33f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
Expand Down
1 change: 0 additions & 1 deletion queue_job/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from . import wizards
from . import jobrunner
from .post_init_hook import post_init_hook
from .post_load import post_load

# shortcuts
from .job import identity_exact
5 changes: 2 additions & 3 deletions queue_job/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

{
"name": "Job Queue",
"version": "20.0.2.0.2",
"version": "20.0.2.4.0",
"author": "Camptocamp,ACSONE SA/NV,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/queue",
"license": "LGPL-3",
"category": "Generic Modules",
"depends": ["mail", "base_sparse_field", "web"],
"external_dependencies": {"python": ["requests"]},
"external_dependencies": {"python": ["requests", "openupgradelib"]},
"data": [
"security/security.xml",
"security/ir.access.csv",
Expand All @@ -31,5 +31,4 @@
"development_status": "Mature",
"maintainers": ["guewen", "sbidoul"],
"post_init_hook": "post_init_hook",
"post_load": "post_load",
}
37 changes: 17 additions & 20 deletions queue_job/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from werkzeug.exceptions import BadRequest, Forbidden

from odoo import SUPERUSER_ID, api, http
from odoo.sql_db import PG_CONCURRENCY_EXCEPTIONS_TO_RETRY
from odoo.tools import config

from ..delay import chain, group
Expand All @@ -23,14 +24,6 @@

PG_RETRY = 5 # seconds

# odoo.service.model.PG_CONCURRENCY_ERRORS_TO_RETRY was removed in 20.0
# (odoo.sql_db only exposes the exception classes now)
PG_CONCURRENCY_ERRORS_TO_RETRY = (
errorcodes.LOCK_NOT_AVAILABLE,
errorcodes.SERIALIZATION_FAILURE,
errorcodes.DEADLOCK_DETECTED,
)

DEPENDS_MAX_TRIES_ON_CONCURRENCY_FAILURE = 5


Expand Down Expand Up @@ -105,10 +98,14 @@ def _try_perform_job(cls, env, job):
# TODO refactor, the relation between env and job.env is not clear
assert env.cr is job.env.cr
with _prevent_commit(env.cr):
job.perform()
# Triggers any stored computed fields before calling 'set_done'
# so that will be part of the 'exec_time'
env.flush_all()
# On failure, rolling back the savepoint releases the row locks
# the job took on the records it updated: the failure is handled
# from another cursor, which may write on the same records (e.g.
# the on fail hook).
# On success, leaving the savepoint flushes, before 'set_done', so
# that the stored computed fields are part of the 'exec_time'.
with env.cr.savepoint():
job.perform()
job.set_done()
job.store()
env.flush_all()
Expand All @@ -130,7 +127,7 @@ def _enqueue_dependent_jobs(cls, env, job):
except OperationalError as err:
# Automatically retry the typical transaction serialization
# errors
if err.pgcode not in PG_CONCURRENCY_ERRORS_TO_RETRY:
if not isinstance(err, PG_CONCURRENCY_EXCEPTIONS_TO_RETRY):
raise
if tries >= DEPENDS_MAX_TRIES_ON_CONCURRENCY_FAILURE:
_logger.error(
Expand Down Expand Up @@ -167,7 +164,7 @@ def retry_postpone(job, message, seconds=None):
except OperationalError as err:
# Automatically retry the typical transaction serialization
# errors
if err.pgcode not in PG_CONCURRENCY_ERRORS_TO_RETRY:
if not isinstance(err, PG_CONCURRENCY_EXCEPTIONS_TO_RETRY):
raise

_logger.debug("%s OperationalError, postponed", job)
Expand All @@ -193,6 +190,7 @@ def retry_postpone(job, message, seconds=None):
vals = cls._get_failure_values(job, traceback_txt, orig_exception)
job.set_failed(**vals)
job.store()
job.on_fail(vals)
buff.close()
raise

Expand Down Expand Up @@ -220,9 +218,9 @@ def _get_failure_values(cls, job, traceback_txt, orig_exception):
save_session=False,
readonly=False,
)
def runjob(self, db, job_uuid, **kw):
http.request.session.db = db
env = http.request.env(user=SUPERUSER_ID)
def runjob(self, job_uuid, **kw):
http.request.update_env(user=SUPERUSER_ID)
env = http.request.env
job = self._acquire_job(env, job_uuid)
if not job:
return ""
Expand Down Expand Up @@ -394,6 +392,5 @@ def _create_graph_test_jobs(

root_delayable.delay()

return (
f"graph uuid: {list(root_delayable._head())[0]._generated_job.graph_uuid}"
)
head = next(iter(root_delayable._head()))
return f"graph uuid: {head._generated_job.graph_uuid}"
14 changes: 2 additions & 12 deletions queue_job/data/queue_data.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data noupdate="1">
<!-- Queue-job-related subtypes for messaging / Chatter -->
Expand All @@ -7,19 +7,9 @@
<field name="res_model">queue.job</field>
<field name="default" eval="True" />
</record>
<record id="ir_cron_autovacuum_queue_jobs" model="ir.cron">
<field name="name">AutoVacuum Job Queue</field>
<field ref="model_queue_job" name="model_id" />
<field eval="True" name="active" />
<field name="user_id" ref="base.user_root" />
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="state">code</field>
<field name="code">model.autovacuum()</field>
</record>
</data>
<data noupdate="0">
<record model="queue.job.channel" id="channel_root">
<record id="channel_root" model="queue.job.channel">
<field name="name">root</field>
</record>
</data>
Expand Down
1 change: 1 addition & 0 deletions queue_job/data/queue_job_function_data.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo noupdate="1">
<record id="job_function_queue_job__test_job" model="queue.job.function">
<field name="model_id" ref="queue_job.model_queue_job" />
Expand Down
6 changes: 3 additions & 3 deletions queue_job/delay.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Graph:
instances, although ultimately it is used for this purpose.
"""

__slots__ = "_graph"
__slots__ = ("_graph",)

def __init__(self, graph=None):
if graph:
Expand Down Expand Up @@ -314,7 +314,7 @@ class DelayableChain:
delayable/chain/group object of the graph.
"""

__slots__ = ("_graph", "__head", "__tail")
__slots__ = ("__head", "__tail", "_graph")

def __init__(self, *delayables):
self._graph = DelayableGraph()
Expand Down Expand Up @@ -371,7 +371,7 @@ class DelayableGroup:
delayable/chain/group object of the graph.
"""

__slots__ = ("_graph", "_delayables")
__slots__ = ("_delayables", "_graph")

def __init__(self, *delayables):
self._graph = DelayableGraph()
Expand Down
2 changes: 1 addition & 1 deletion queue_job/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class JobSerialized(fields.Json):
_base_type = None

# these are the default values when we convert an empty value
_default_json_mapping = {
_default_json_mapping = { # noqa: RUF012
dict: "{}",
list: "[]",
tuple: "[]",
Expand Down
45 changes: 40 additions & 5 deletions queue_job/i18n/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ msgstr "Argumente"
msgid "Attachment Count"
msgstr "Anzahl der Anhänge"

#. module: queue_job
#: model:ir.actions.server,name:queue_job.ir_cron_autovacuum_queue_jobs_ir_actions_server
msgid "AutoVacuum Job Queue"
msgstr "AutoVacuum für Job-Warteschlange"

#. module: queue_job
#: model:ir.model,name:queue_job.model_base
msgid "Base"
Expand Down Expand Up @@ -117,6 +112,12 @@ msgstr ""
msgid "Cancelled"
msgstr ""

#. module: queue_job
#. odoo-python
#: code:addons/queue_job/job.py:0
msgid "Cancelled because a job it depends on was cancelled"
msgstr ""

#. module: queue_job
#. odoo-python
#: code:addons/queue_job/models/queue_job.py:0
Expand Down Expand Up @@ -231,6 +232,16 @@ msgstr ""
msgid "Dependency Graph"
msgstr ""

#. module: queue_job
#: model:ir.model.fields,field_description:queue_job.field_queue_job__dependency_ids
msgid "Dependency Jobs"
msgstr ""

#. module: queue_job
#: model:ir.model.fields,field_description:queue_job.field_queue_job__dependent_ids
msgid "Dependent Jobs"
msgstr ""

#. module: queue_job
#: model:ir.model.fields,field_description:queue_job.field_queue_job__name
msgid "Description"
Expand Down Expand Up @@ -469,12 +480,22 @@ msgstr "Job ist fehlgeschlagen"
msgid "Jobs"
msgstr "Jobs"

#. module: queue_job
#: model:ir.model.fields,help:queue_job.field_queue_job__dependent_ids
msgid "Jobs depending on this job."
msgstr ""

#. module: queue_job
#. odoo-python
#: code:addons/queue_job/models/queue_job.py:0
msgid "Jobs for graph %s"
msgstr ""

#. module: queue_job
#: model:ir.model.fields,help:queue_job.field_queue_job__dependency_ids
msgid "Jobs this job depends on."
msgstr ""

#. module: queue_job
#: model:ir.model.fields,field_description:queue_job.field_queue_job__kwargs
msgid "Kwargs"
Expand Down Expand Up @@ -557,6 +578,12 @@ msgstr "Modell"
msgid "Model %s not found"
msgstr ""

#. module: queue_job
#: model:ir.model.fields,help:queue_job.field_queue_job_function__on_fail_method
msgid ""
"Model function to be called if the job is failed and will not be retried."
msgstr ""

#. module: queue_job
#: model:ir.model.fields,field_description:queue_job.field_queue_job__my_activity_date_deadline
msgid "My Activity Deadline"
Expand Down Expand Up @@ -615,6 +642,11 @@ msgstr ""
msgid "Number of messages with delivery error"
msgstr "Das ist die Anzahl von Nachrichten mit Übermittlungsfehler"

#. module: queue_job
#: model:ir.model.fields,field_description:queue_job.field_queue_job_function__on_fail_method
msgid "On Fail Method"
msgstr ""

#. module: queue_job
#: model:ir.model.fields,field_description:queue_job.field_queue_job_channel__parent_id
msgid "Parent Channel"
Expand Down Expand Up @@ -934,6 +966,9 @@ msgstr ""
msgid "id"
msgstr ""

#~ msgid "AutoVacuum Job Queue"
#~ msgstr "AutoVacuum für Job-Warteschlange"

#~ msgid "Group By"
#~ msgstr "Gruppieren nach"

Expand Down
45 changes: 40 additions & 5 deletions queue_job/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,6 @@ msgstr "Argumentos"
msgid "Attachment Count"
msgstr "Nº de archivos adjuntos"

#. module: queue_job
#: model:ir.actions.server,name:queue_job.ir_cron_autovacuum_queue_jobs_ir_actions_server
msgid "AutoVacuum Job Queue"
msgstr "Vaciado automático de la cola de trabajos"

#. module: queue_job
#: model:ir.model,name:queue_job.model_base
msgid "Base"
Expand Down Expand Up @@ -120,6 +115,12 @@ msgstr "Cancelar trabajos"
msgid "Cancelled"
msgstr "Cancelada"

#. module: queue_job
#. odoo-python
#: code:addons/queue_job/job.py:0
msgid "Cancelled because a job it depends on was cancelled"
msgstr ""

#. module: queue_job
#. odoo-python
#: code:addons/queue_job/models/queue_job.py:0
Expand Down Expand Up @@ -234,6 +235,16 @@ msgstr "Dependencias"
msgid "Dependency Graph"
msgstr "Gráfico de dependencias"

#. module: queue_job
#: model:ir.model.fields,field_description:queue_job.field_queue_job__dependency_ids
msgid "Dependency Jobs"
msgstr ""

#. module: queue_job
#: model:ir.model.fields,field_description:queue_job.field_queue_job__dependent_ids
msgid "Dependent Jobs"
msgstr ""

#. module: queue_job
#: model:ir.model.fields,field_description:queue_job.field_queue_job__name
msgid "Description"
Expand Down Expand Up @@ -470,12 +481,22 @@ msgstr "Trabajo fallido"
msgid "Jobs"
msgstr "Trabajos"

#. module: queue_job
#: model:ir.model.fields,help:queue_job.field_queue_job__dependent_ids
msgid "Jobs depending on this job."
msgstr ""

#. module: queue_job
#. odoo-python
#: code:addons/queue_job/models/queue_job.py:0
msgid "Jobs for graph %s"
msgstr "Trabajos para gráfico %s"

#. module: queue_job
#: model:ir.model.fields,help:queue_job.field_queue_job__dependency_ids
msgid "Jobs this job depends on."
msgstr ""

#. module: queue_job
#: model:ir.model.fields,field_description:queue_job.field_queue_job__kwargs
msgid "Kwargs"
Expand Down Expand Up @@ -558,6 +579,12 @@ msgstr "Modelo"
msgid "Model %s not found"
msgstr ""

#. module: queue_job
#: model:ir.model.fields,help:queue_job.field_queue_job_function__on_fail_method
msgid ""
"Model function to be called if the job is failed and will not be retried."
msgstr ""

#. module: queue_job
#: model:ir.model.fields,field_description:queue_job.field_queue_job__my_activity_date_deadline
msgid "My Activity Deadline"
Expand Down Expand Up @@ -616,6 +643,11 @@ msgstr "Número de mensajes que requieren una acción"
msgid "Number of messages with delivery error"
msgstr "Número de mensajes con error de envío"

#. module: queue_job
#: model:ir.model.fields,field_description:queue_job.field_queue_job_function__on_fail_method
msgid "On Fail Method"
msgstr ""

#. module: queue_job
#: model:ir.model.fields,field_description:queue_job.field_queue_job_channel__parent_id
msgid "Parent Channel"
Expand Down Expand Up @@ -946,6 +978,9 @@ msgstr "Pid del trabajador"
msgid "id"
msgstr ""

#~ msgid "AutoVacuum Job Queue"
#~ msgstr "Vaciado automático de la cola de trabajos"

#~ msgid "Group By"
#~ msgstr "Agrupar por"

Expand Down
Loading
Loading