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.
Version: v0.6.0
Repro steps
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
The CLI prints the queued message and exits immediately with code 0. The task continues running in Semaphore.
--watchhas no effect whatsoever.--exit-codeis also rendered useless because there is nothing to wait for.