Documentation
¶
Overview ¶
Package main demonstrates workflow task priority in dureq — when multiple tasks become ready simultaneously, higher-priority tasks are dispatched first.
Scenario: After a start task completes, three tasks become ready at once with different priorities. They are dispatched in priority order.
start → task_critical(priority=10) ─┐
→ task_normal(priority=5) ─┼─ finish
→ task_low(priority=1) ─┘
With concurrency=1 on the server, the execution order is deterministic: critical → normal → low → finish.
Click to show internal directories.
Click to hide internal directories.