Skip to content

remediate

remediate

Interactive access to the shared conductor remediation engine.

Classes

Functions:

remediate

remediate(job_id=Argument(..., help='Job ID to diagnose and remediate.'), workspace=Option(None, '--workspace', '-w', help='Remedy workspace override.'), sheet=Option(None, '--sheet', min=1, help='Select one sheet.'), yes=Option(False, '--yes', help='Approve suggested remedies.'), dry_run=Option(False, '--dry-run', help='Preview without applying or prompting.'), json_output=Option(False, '--json', help='Write a machine-readable report.'))

Diagnose failed sheets and propose or apply fixes using the conductor's remedies.

Source code in src/marianne/cli/commands/remediate.py
def remediate(
    job_id: str = typer.Argument(..., help="Job ID to diagnose and remediate."),
    workspace: Path | None = typer.Option(
        None, "--workspace", "-w", help="Remedy workspace override."
    ),
    sheet: int | None = typer.Option(None, "--sheet", min=1, help="Select one sheet."),
    yes: bool = typer.Option(False, "--yes", help="Approve suggested remedies."),
    dry_run: bool = typer.Option(False, "--dry-run", help="Preview without applying or prompting."),
    json_output: bool = typer.Option(False, "--json", help="Write a machine-readable report."),
) -> None:
    """Diagnose failed sheets and propose or apply fixes using the conductor's remedies."""
    asyncio.run(_remediate_job(job_id, workspace, sheet, yes, dry_run, json_output))