Skip to content

CLI retry command to re-run a failed video #14

Description

@alimaandev

Problem

The desktop app can retry a failed video (AppController.queue_retry), but the CLI has no equivalent — a failed generate means starting over.

Task

Add python -m shortube.main retry <video_id> that resets the video to pending and re-runs the pipeline, reusing the resume logic in shortube/pipeline.py (cached script/storyboard/voiceover are reused).

Acceptance criteria

  • retry resets status and re-runs the pipeline for the given id
  • Unknown id prints a clear error and exits non-zero
  • --dry-run supported
  • Unit test in tests/ with run_pipeline mocked

Files

  • shortube/main.py
  • shortube/pipeline.py (read-only reference)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions