1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Module for various query implementations for the SQLite backend.
//!
//! Each submodule contains specific query logic used by the backend.
use StatType;
/// ACK a task on success or failure
/// Fetch tasks by their IDs
/// Keep workers alive by updating their heartbeat
/// List available queues
/// List tasks in a specific queue
/// List workers
/// Lock a task for processing
/// Metrics related queries
/// Re-enqueue orphaned tasks that were being processed by dead workers
/// Register a new worker in the database
/// Vacuum the database to optimize space
/// Wait for tasks to complete and stream their results
/// Convert a string representation of a stat type to the corresponding `StatType` enum variant