priority_workflow

command
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL