test_queue_job
This module provides comprehensive tests for the queue job functionality in Odoo.
Key Features
- queue.job: Job creation, storage, loading, and basic operations
- queue.job: Job state management including pending, enqueued, started, done, failed, and cancelled states
- queue.job: Job retry mechanisms with fixed and randomized retry patterns
- job channels: Channel configuration, hierarchy, and assignment to jobs
- job dependencies: Dependency management, dependency graphs, and enqueuing waiting jobs
- delayable: Delayable objects, chains, groups, and graph execution
- auto delay: Automatic job delaying with decorators and options
- job identity: Identity key handling to prevent duplicate jobs
- related actions: Related action decorators and default actions for records
- dead jobs: Requeuing dead jobs with lock management
- autovacuum: Automatic cleanup of old jobs based on removal intervals
- json field: JSON encoding for recordsets and context filtering
- delay mocks: Testing utilities for trapping and asserting enqueued jobs
- multi-company: Multi-company job handling and company-specific followers
- user context: Context handling, transfer, and sudo support in jobs
- mutable arguments: Handling mutable arguments without mutation during job execution
- unicode: Unicode support in job arguments and descriptions
- job postponing: Postponing job execution with ETA and timedelta
- worker: Worker PID tracking during job execution
- job description: Automatic job description generation from functions
- job subscription: Job followers, notifications, and messaging
- wizard requeue: Requeue wizard for failed jobs
- context uuid: Job UUID inclusion in execution context
- override channel: Channel overriding for specific jobs
- user id: User ID changes and recordset environment updates