batch

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 dureq batch processing — a shared preprocessing step (onetime) followed by parallel per-item processing with individual success/failure tracking and result collection.

Scenario: Image processing pipeline

  1. onetime: download a shared background template image
  2. per-item: overlay each user's text onto the template and produce a result URL

The batch orchestrator dispatches the onetime job first, waits for completion, then dispatches items in chunks (backpressure). Individual item failures don't stop the rest (continue_on_error policy).

Jump to

Keyboard shortcuts

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