NAME
Punk::Queue::Command - the subcommands behind punk-queue
SYNOPSIS
punk-queue worker -q default,mail -j 4 --app MyApp
punk-queue jobs --state failed --json --dsn dbi:SQLite:dbname=q.db
DESCRIPTION
Argument handling and dispatch for the punk-queue command line tool. Each subcommand is a function returning an exit code: 0 fine, 1 the thing you asked about is wrong, 2 the command was used wrongly. The work happens through the ordinary Punk::Queue API, so everything here is testable without spawning a process.
The governing rule: anything the admin UI can do, the CLI can do, and every subcommand works from --dsn alone. Inspection never requires loading the application.
FUNCTIONS
main(@ARGV)
Dispatch. bin/punk-queue calls this and exits with its return value.
worker / enqueue / job / jobs / workers / stats / migrate / reset
One function per subcommand, each documented in punk-queue help.
commands
The subcommand names.
usage($fh)
Print the help text.
AUTHOR
LNATION <email@lnation.org>
LICENSE AND COPYRIGHT
This software is Copyright (c) 2026 by LNATION <email@lnation.org>.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)