Skip to content

docs: fix incorrect retention-cleanup monitoring command - #61

Merged
Sekiph82 merged 1 commit into
mainfrom
docs/fix-retention-monitoring-command
Jul 15, 2026
Merged

docs: fix incorrect retention-cleanup monitoring command#61
Sekiph82 merged 1 commit into
mainfrom
docs/fix-retention-monitoring-command

Conversation

@Sekiph82

Copy link
Copy Markdown
Owner

Summary

WORKERS.md documented doctl apps logs <app-id> --component retention-cleanup --type run as the monitoring command — --component is not a real flag (verified against doctl apps logs --help); component name is a positional argument. Additionally, for a SCHEDULED job with no invocations yet, the plain command errors (websocket: close 1011 internal server error) since it isn't tied to "current deployment" the way PRE_DEPLOY jobs are.

Corrects the docs to the actual working two-step sequence: list-job-invocations to find the invocation ID, then apps logs ... --job-invocation <id>. Verified the log-fetch step's command shape against the live migrate job, which has actually run.

Documentation only — no code, migration, or infrastructure change.

Test plan

  • N/A — docs only.

🤖 Generated with Claude Code

WORKERS.md documented 'doctl apps logs <app-id> --component
retention-cleanup --type run' -- verified against the actual doctl
help output that --component is not a real flag (component name is a
positional argument), and confirmed by live testing against
production that a SCHEDULED job with no invocations yet errors
without an explicit --job-invocation ID (unlike PRE_DEPLOY jobs,
which default to the current deployment's run).

Corrected to the two-step sequence that actually works: list-job-
invocations to find the invocation ID, then apps logs with
--job-invocation. Verified the corrected first step's command shape
against the live migrate job, which has actually run.
@Sekiph82
Sekiph82 merged commit 9ce089b into main Jul 15, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant