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

[17.0][MIG] queue_job_cron: Migration to 17.0 #1

Open
wants to merge 1,247 commits into
base: 17.0
Choose a base branch
from

Conversation

nguyenminhchien
Copy link
Owner

No description provided.

guewen and others added 30 commits November 24, 2023 14:17
* Renaming the TestXxx models in test_queue_job is because of pytest that
  complains, confusing them for test classes
* logger.warn is deprecated in favor of logger.warning
* Add invalidation of cache in SQL update that enqueue dependent jobs
* Flush in a test, the same is done currently in the controller
* Weird one: we can no longer compare the bound methods of the models,
  compare their __func__ which is equal.
The assert fails to show the method's details if we store the __func__ in JobCall.
Anyway, it was hackish to change the content of "method".
The fact that mocks are used is an implementation detail, and is actually
hidden to the end user of the test API.
on_done() is maybe a better choice, it is less ambiguous than then() (clearer
on the fact it happens on done()) and done() (less confusion with set_done()).
I'll do the renaming soon, unless you have other suggestions.

Ref: OCA#154 (comment)
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: queue-15.0/queue-15.0-queue_job
Translate-URL: https://translation.odoo-community.org/projects/queue-15-0/queue-15-0-queue_job/
This forward port takes all the changes from 15.0 not yet into 16.0
up to OCA@173b6ca

This FP contains the new queue dependencies functionality.
The dedicated widget used to display the dependecies graph on the job
form is also migrated to owl
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: queue-16.0/queue-16.0-queue_job
Translate-URL: https://translation.odoo-community.org/projects/queue-16-0/queue-16-0-queue_job/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: queue-16.0/queue-16.0-queue_job
Translate-URL: https://translation.odoo-community.org/projects/queue-16-0/queue-16-0-queue_job/
In servers with multiple databases db is not captured from URL when
processing jobs in /queue_job/runjob

With this patch db is set from the db param in URL when calling
the runjob endpoint

Fixes OCA#503
Currently translated at 82.0% (128 of 156 strings)

Translation: queue-16.0/queue-16.0-queue_job
Translate-URL: https://translation.odoo-community.org/projects/queue-16-0/queue-16-0-queue_job/es/
When a job is postponed because of a retryable error, as the error
is not re-raised, we reach the new method

    self._enqueue_dependent_jobs(env, job)

With a closed cursor. Return early in case of postponing, as there is
no chance dependent jobs can become pending anyway.
jobrunner_db_user, jobrunner_db_password
Current situation:

* multiple keys for no good reason
* half baked: not all of them used everywhere
* no centralization
* poor naming

With this change we'll have:

* 1 and only one key to disable via ctx: ``queue_job__no_delay``
* 1 and only one key to disable via os env: ``QUEUE_JOB__NO_DELAY``
* backward compatibility with deprecation for old keys
guewen and others added 29 commits January 10, 2024 10:05
The channel must be 'root.ir_cron', not 'ir_cron'.
- set module uninstallable
- add new .dot file config for v14
Currently translated at 100.0% (4 of 4 strings)

Translation: queue-16.0/queue-16.0-queue_job_cron
Translate-URL: https://translation.odoo-community.org/projects/queue-16-0/queue-16-0-queue_job_cron/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: queue-16.0/queue-16.0-queue_job_cron
Translate-URL: https://translation.odoo-community.org/projects/queue-16-0/queue-16-0-queue_job_cron/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.