lep queue

Manage queues on the Lepton AI cloud.

Lepton provides a simple to use message queue for sending messages between deployments. For example, you can use the queue functionality to build a distributed task manager.

The queue commands allow you to create, list, and remove queues on the Lepton AI cloud.

Usage

lep queue [OPTIONS] COMMAND [ARGS]...

Options

  • --help : Show this message and exit.

Commands

  • create : Creates a queue of the given name.
  • list : Lists all queues in the current workspace.
  • receive : Receives a message from the queue with the given name.
  • remove : Removes the queue with the given name.
  • send : Sends a message to the queue with the given name.

lep queue create

Creates a queue of the given name.

Usage

lep queue create [OPTIONS]

Options

  • -n, --name TEXT : Queue name [required]
  • --help : Show this message and exit.

lep queue list

Lists all queues in the current workspace. Note that the queue values are always hidden.

Usage

lep queue list [OPTIONS]

Options

  • --pattern TEXT : Regular expression pattern to filter queue names
  • --help : Show this message and exit.

lep queue remove

Removes the queue with the given name.

Usage

lep queue remove [OPTIONS]

Options

  • -n, --name TEXT : Queue name [required]
  • --help : Show this message and exit.

lep queue send

Sends a message to the queue with the given name.

Usage

lep queue send [OPTIONS]

Options

  • -n, --name TEXT : Queue name [required]
  • -m, --message TEXT : Message to send [required]
  • --help : Show this message and exit.

lep queue receive

Receives a message from the queue with the given name.

Usage

lep queue receive [OPTIONS]

Options

  • -n, --name TEXT : Queue name [required]
  • --help : Show this message and exit.
Lepton AI

© 2024