Skip to main content

Pulp CLI Workflow Plugin

A pulp-cli plugin for managing Pulp workflows.

Usage

pulp workflow list
pulp workflow show --name <name>
pulp workflow create --name <name> --task '<json>'
pulp workflow create --name <name> --task '<json>' --dispatch-interval '1 00:00:00'
pulp workflow cancel --name <name>
pulp workflow label set --name <name> --key <key> --value <value>

# Inspect the individual runs (executions) of workflows
pulp workflow run list --workflow <name>
pulp workflow run show --href <href>
pulp workflow run cancel --href <href>

Examples

The examples below assume $REPO_HREF, $REPO_PK, and $REMOTE_PK for a pulp_file repository are already set.

Run a sync once at a specific time

Use --start-time with an ISO 8601 datetime to schedule a single run in the future. Omit --dispatch-interval so the workflow runs exactly once.

pulp workflow create \
  --name nightly-sync-once \
  --start-time "2026-08-01T02:00:00" \
  --task '{
    "task_name": "pulp_file.app.tasks.synchronizing.synchronize",
    "reserved_resources": ["'"$REPO_HREF"'"],
    "task_kwargs": [
      {"kwarg_key": "repository_pk", "value": "'"$REPO_PK"'"},
      {"kwarg_key": "remote_pk",     "value": "'"$REMOTE_PK"'"},
      {"kwarg_key": "mirror",        "value": false}
    ]
  }'

Run a sync every day

Add --dispatch-interval '1 00:00:00' (1 day) to re-run the workflow on a schedule, creating a new run each interval. Without --start-time the first run starts now.

pulp workflow create \
  --name daily-sync \
  --dispatch-interval '1 00:00:00' \
  --task '{
    "task_name": "pulp_file.app.tasks.synchronizing.synchronize",
    "reserved_resources": ["'"$REPO_HREF"'"],
    "task_kwargs": [
      {"kwarg_key": "repository_pk", "value": "'"$REPO_PK"'"},
      {"kwarg_key": "remote_pk",     "value": "'"$REMOTE_PK"'"},
      {"kwarg_key": "mirror",        "value": false}
    ]
  }'

Run a sync and publish every day

Pass --task twice to chain steps. The publish task's repository_version_pk is a dynamic arg (content_type: core.repositoryversion) that the workflow engine resolves at dispatch time from the repository version the sync creates.

pulp workflow create \
  --name daily-sync-and-publish \
  --dispatch-interval '1 00:00:00' \
  --task '{
    "task_name": "pulp_file.app.tasks.synchronizing.synchronize",
    "reserved_resources": ["'"$REPO_HREF"'"],
    "task_kwargs": [
      {"kwarg_key": "repository_pk", "value": "'"$REPO_PK"'"},
      {"kwarg_key": "remote_pk",     "value": "'"$REMOTE_PK"'"},
      {"kwarg_key": "mirror",        "value": false}
    ]
  }' \
  --task '{
    "task_name": "pulp_file.app.tasks.publish",
    "reserved_resources": ["'"$REPO_HREF"'"],
    "task_kwargs": [
      {"kwarg_key": "manifest", "value": "PULP_MANIFEST"},
      {"kwarg_key": "repository_version_pk", "content_type": "core.repositoryversion"}
    ]
  }'

Metadata

Release files for pulp-cli-workflow 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pulp-cli-workflow 0.1.0
File Size Uploaded Provenance Actions
pulp_cli_workflow-0.1.0.tar.gz 7.4 kB Without provenance Details for pulp_cli_workflow-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pulp-cli-workflow 0.1.0
File Interpreter ABI Platform Actions
pulp_cli_workflow-0.1.0-py3-none-any.whl Python 3 none any Details for pulp_cli_workflow-0.1.0-py3-none-any.whl

Total release size: 13.6 kB

Release files / pulp_cli_workflow-0.1.0.tar.gz

Download URL pulp_cli_workflow-0.1.0.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c1c6de1890157283169e067ab59f2e3cc9ef8a6a1f3904f9c14dd7f92291bbbd
BLAKE2b-256 checksum
How to use checksums
1036e5db186ff80fd0dcac3ad65bf8bca8c2a3aa38e86e005ad0bcbcf63154ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pulp_cli_workflow-0.1.0-py3-none-any.whl

Download URL pulp_cli_workflow-0.1.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ab0c51aaf46afdc20ddc55b44570df2b7aa8748cbe365e2a892928f3c577f51
BLAKE2b-256 checksum
How to use checksums
741447ca5b51ee16c9d6f7b5d9edf3600f981b179b70975604de926ce7ed6868
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for pulp-cli-workflow 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page