Flexi
Q
Getting Started
Guides
Architecture
API
Changelog
Choose SDK
Python
Search
⌘K
Python
/
Guides
/
Core
The building blocks of every flexiq application.
← Previous
Guides
Next →
Tasks
Tasks
Define tasks with @queue.task(), configure retries, timeouts, and options
Task Discovery
Declare tasks with @flexiq.task() and claim them with autodiscover()
Workers
Start workers, control concurrency, graceful shutdown
Execution Models
How tasks move from enqueue to completion
Queues & Priority
Named queues, priority levels, and routing
Enqueue Options
Per-job overrides — priority, delay, timeout, dedup keys, expiry, dependencies
Cancellation
Cancel a pending job, ask a running one to stop, report progress
Scheduling
Periodic tasks with cron expressions
Predicates
Gate execution with a serializable predicate DSL — time windows, feature flags
Task Batching
Collect many small calls into a single job
Pub/Sub
Fan a published message out to independent subscribers, each its own job
Workflows
Chains, groups, and chords for multi-step pipelines