Skip to content

ezgh queues send

Send a message to a queue.

Updated View as Markdown
ezgh queues send <queue> [--body text | --file path | stdin] [--attr k=v…] [--group g] [--dedup d] [--delay t] [flags]

Send one message: its body is --body, the contents of --file, or what’s piped on stdin (UTF-8 text; with its attributes, at most 256 KiB). --attr adds an attribute (up to 10; keys don’t start with ezgh.).

A FIFO queue needs --group, the message group it’s delivered in order within, and --dedup unless the queue deduplicates by content: a send with a dedup ID seen in the last 5 minutes isn’t stored again, and answers the original message’s ID. --delay (standard queues only, up to 15m) holds the message back before its first delivery, in place of the queue’s delay.

Part of ezgh queues.

Examples

ezgh queues send orders --body '{"orderId": 42}' --attr source=checkout
cat order.json | ezgh queues send orders
ezgh queues send payments --file payment.json --group acct-9 --dedup pay-1842

Flags

Flag Type Default Description
--attr string, repeatable an attribute, key=value (repeat)
--body string the message’s body
--dedup string FIFO: the deduplication ID
--delay string standard queues: hold the message back this long (0 to 15m)
--file string read the body from this file
--group string FIFO: the message group

This command also takes the global flags.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close