Skip to content

[REQUEST] Need a way to update a task to failed #3826

@peakschris

Description

@peakschris

We have spinner columns set up like this:

    finished_text = "-"
    if sys.__stdout__.isatty():
        finished_text = "[green]✓"
    return rich.progress.Progress(
        rich.progress.SpinnerColumn(finished_text=finished_text),
        rich.progress.TextColumn("{task.description}", table_column=rich.table.Column(ratio=1)),
        rich.progress.TextColumn("{task.fields[command]}", table_column=rich.table.Column(ratio=2)),
    )

If the task fails I would like to update the spinner column to display [red]x

Is this possible?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions