Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Artificial Intelligence
  3. LLM Generate Job v 18.0
  4. Sales Conditions FAQ

LLM Generate Job

by Apexive https://github.com/apexive/odoo-llm
Odoo
v 18.0 Third Party 19
Download for v 18.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Community Apps Dependencies Show
• Easy AI Chat
• LLM Content Generation
• LLM Tool
• Web JSON Editor
• LLM Integration Base
• LLM Assistant
Lines of code 13232
Technical Name llm_generate_job
LicenseLGPL-3
Websitehttps://github.com/apexive/odoo-llm
Versions 16.0 18.0
You bought this module and need support? Click here!
  • Description
  • Documentation
Job Queue System

LLM Generate Job

Generation Job Management and Queue System for LLM Providers.

Async processing and job management for AI generation tasks

Queue Management
Retry Handling
Open Source

What is LLM Generate Job?

Manage AI generation tasks with a robust queue system

This module provides a comprehensive generation job management system for LLM providers. It supports both direct generation (legacy mode) and queued generation for better resource management and scalability. Perfect for handling long-running AI tasks without blocking user interactions.


Features

Complete job management for AI operations

Job Creation & Lifecycle

Create generation jobs and manage their complete lifecycle from pending to completion.

Provider-Specific Queues

Manage separate queues for different LLM providers to optimize throughput.

Status Tracking

Monitor job status and track progress of generation tasks in real-time.

Retry & Error Handling

Automatic retry mechanisms and comprehensive error handling for failed jobs.

Direct vs Queued

Choose between direct generation for immediate results or queued for better scalability.

Advisory Locking

PostgreSQL advisory locking integration to prevent duplicate job processing.


Technical Details

Requirements and dependencies

Module Information

Dependencies:

llm_thread, llm_tool, llm_generate

Category:

Artificial Intelligence

Processing:

Cron-based queue processing

License:

LGPL-3

LLM Generate Job

Job queue system for AI generation

Developed by Apexive

Licensed under LGPL-3 • © 2025 All rights reserved.

github.com/apexive/odoo-llm
hello@apexive.com

LLM Generate Job

Comprehensive generation job management system with queue management and job tracking capabilities for long-running AI tasks.

Module Type: 🔌 Extension

LLM Generate Job Architecture

Installation

What to Install

Install this module when you need background/async generation for long-running tasks.

odoo-bin -d your_db -i llm_generate_job

Auto-Installed Dependencies

These are pulled in automatically:

  • llm_generate (generation API)
  • llm_thread (chat interface)
  • llm_tool (tool framework)
  • llm (core infrastructure)

When to Use This Module

Scenario Recommendation
Quick chat responses Not needed - use direct generation
Long document generation Install this
Batch image generation Install this
API rate limit management Install this

Common Setups

I want to... Install
Background text generation llm_assistant + llm_openai + this module
Batch image processing llm_assistant + llm_fal_ai + this module

Features

Generation Job Management

  • Job Lifecycle: Complete job lifecycle management from creation to completion
  • Status Tracking: Real-time job status (draft, queued, running, completed, failed, cancelled)
  • Retry Logic: Automatic and manual retry capabilities for failed jobs
  • Error Handling: Comprehensive error tracking and reporting

Queue Management

  • Provider-specific Queues: Each LLM provider has its own dedicated queue
  • Concurrent Job Control: Configurable maximum concurrent jobs per provider
  • Queue Health Monitoring: Real-time queue health indicators
  • Performance Metrics: Queue performance analytics and success rates

Usage

Basic Usage

# Direct generation (backward compatible)
thread = self.env['llm.thread'].browse(thread_id)
for update in thread.generate_response("Hello", use_queue=False):
    print(update)

# Queued generation
for update in thread.generate_response("Hello", use_queue=True):
    print(update)

# Auto-detection (recommended)
for update in thread.generate_response("Hello"):
    # Automatically chooses based on provider capabilities
    print(update)

Job Management

# Create a job
job = self.env['llm.generation.job'].create({
    'thread_id': thread_id,
    'provider_id': provider_id,
    'model_id': model_id,
    'generation_inputs': {'prompt': 'Hello world'},
})

# Queue and start the job
job.action_queue()

# Monitor job status
while job.state in ['queued', 'running']:
    status = job.check_status()
    print(f"Job {job.id} is {job.state}")

Architecture

Models

llm.generation.job

The main model for managing individual generation jobs:

  • Relationships: Links to thread, provider, model, and messages
  • Status Management: Job state transitions and lifecycle management
  • Timing: Queue time, processing time, and completion tracking

llm.generation.queue

Provider-specific queue management:

  • Configuration: Maximum concurrent jobs, auto-retry settings
  • Monitoring: Real-time job counts and queue health
  • Performance: Success rates and processing time analytics

Monitoring

Queue Health

Queues are automatically monitored for:

  • Healthy: Normal operation
  • Warning: High load but functioning
  • Critical: Overloaded or failing
  • Disabled: Manually disabled

Performance Metrics

  • Average Queue Time: Time jobs spend waiting
  • Average Processing Time: Time jobs spend processing
  • Success Rate: Percentage of successful jobs
  • Throughput: Jobs processed per time period

Cron Jobs

  • Process Queues: Automatically process pending jobs (every minute)
  • Check Job Status: Update running job statuses (every 30 seconds)
  • Auto-retry Failed Jobs: Retry eligible failed jobs (every 5 minutes)
  • Cleanup Old Jobs: Remove old completed jobs (daily)

Technical Specifications

Module Information

  • Name: LLM Generate Job
  • Version: 18.0.1.0.0
  • Category: Productivity
  • License: LGPL-3
  • Dependencies: llm_thread, llm_tool
  • Author: Apexive Solutions LLC

Related Modules

  • ``llm_generate`` - Core generation API (dependency)
  • ``llm_thread`` - Chat interface integration
  • ``llm_assistant`` - Assistant configuration
  • ``llm_fal_ai`` - Provider with job-based generation

Resources

  • GitHub Repository

License

This module is licensed under LGPL-3.


© 2025 Apexive Solutions LLC. All rights reserved.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with