Queue Management
Initialize and configure queues
These instructions are authority-only (require the queue owner's signature).
initialize_queue
Creates a new queue and its associated SPL token vault.
Parameters:
| Param | Type | Description |
|---|---|---|
min_worker_stake | u64 | Minimum tokens workers must stake |
job_timeout | i64 | Seconds until a claimed job can be expired |
slash_rate_bps | u16 | Basis points of stake slashed on failure (0–10000) |
crank_reward_bps | u16 | Basis points of slash paid to cranker (0–10000) |
max_concurrent_jobs | u8 | Max jobs a worker can hold simultaneously |
Accounts created:
QueueConfigPDA at["queue", authority]- Vault token account PDA at
["vault", queue]
update_queue_config
Modifies queue parameters. Only the authority can call this.
Updatable fields: arbiter, min_worker_stake, job_timeout, slash_rate_bps, crank_reward_bps, max_concurrent_jobs
Note: reward_mint cannot be changed after creation.
toggle_queue_pause
Flips the is_paused flag. When paused:
create_jobis blockedclaim_jobis blocked- All other lifecycle operations (submit, approve, dispute, crank) still work