purge
CLI module for purging tasks from Merlin queues on the task server.
This module defines the PurgeCommand class, which implements the purge
subcommand in the Merlin CLI. The command is used to remove tasks from
queues either entirely or selectively, based on the specified steps in
a Merlin YAML workflow specification.
PurgeCommand
Bases: CommandEntryPoint
Handles purge CLI command for removing tasks from queues on the server.
Methods:
| Name | Description |
|---|---|
add_parser |
Adds the |
process_command |
Processes the CLI input and dispatches the appropriate action. |
Source code in merlin/cli/commands/purge.py
add_parser(subparsers)
Add the purge command parser to the CLI argument parser.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
subparsers
|
ArgumentParser
|
The subparsers object to which the |
required |
Source code in merlin/cli/commands/purge.py
process_command(args)
CLI command for purging tasks from the task server.
This function removes specified tasks from the task server based on the provided Merlin specification. It allows for targeted purging or forced removal of tasks.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
args
|
Namespace
|
Parsed CLI arguments containing:
|
required |