Skip to content

bug: task run --watch exits immediately without waiting for task completion #68

Description

@Moep90

Version: v0.6.0

Repro steps

semctl task run render_all_inventory -p tiki-share --watch --exit-code --message 'test'

Expected behavior

The CLI blocks until the task reaches a terminal state (success, error, stopped), then exits with a status-specific exit code (useful for CI pipelines with --exit-code).

Actual behavior

✓ Queued task 23877 from template render_all_inventory
View logs: semctl task logs 23877 --follow

The CLI prints the queued message and exits immediately with code 0. The task continues running in Semaphore. --watch has no effect whatsoever.

--exit-code is also rendered useless because there is nothing to wait for.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions