TIP: You can type at any time to perform a new search.
Job Queue Profiler
queue_job_profiler · OCA/queue
- Repository
- OCA/queue · module folder · Try on Runboat
- Module version
- 1.0.1
- Category
- Generic Modules
- Folder size
- 0.05 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/queue
- Last tracking update
- 2026-08-07 08:42:59
- Authors
- Camptocamp, Odoo Community Association (OCA)
- Maintainers
- Camptocamp, Odoo Community Association (OCA)
- Committers
- Simone Orsi, Thierry Ducrest, Weblate, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- requests
- System dependencies
- None
- Required by
- None
- Description
This addon adds profiling controls to queue job functions and wraps queue job execution in an Odoo profiler session when enabled. When profiling is enabled for a job function and the executing user matches one of the configured profiling users (or no users are set), the queue job runner records SQL and async stack traces via `odoo.tools.profiler.Profiler` and saves the results into `ir_profile`.
Code Analysis ⓘ
Views touched (2)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
queue_job_form_profiler |
queue.job.form.profiler | queue.job | form | Inherits queue_job.view_queue_job_form |
queue_job_function_form_profiler |
queue.job.function.form.profiler | queue.job.function | form | Inherits queue_job.view_queue_job_function_form |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (2)
New fields (1)
-
job_is_profiledBooleancompute='_compute_job_is_profiled'compute_sudo=Truedefault=Falsehelp='Whether this job has been profiled or not.'string='Profiled'
-
action_view_profile(self)
New fields (3)
-
profiling_enabledBooleanhelp='Indicates whether profiling is enabled for this job function.'string='Profiling enabled' -
profiling_untilDatetimehelp='The date and time until which profiling is enabled for this job function.'string='Profiling until' -
profiling_user_idsMany2many → res.usershelp='The users allowed to perform profiling for this job function.'string='Profiling users' args: 'res.users'
-
is_profiling_enabled(self)