Watson icon indicating copy to clipboard operation
Watson copied to clipboard

Starting a project with `--at` does not stop the currently running project at that time (`stop_on_start` is `true`)

Open tukusejssirs opened this issue 2 years ago • 2 comments

I have set stop_on_start to true.

When I start a project using --at when another project is running, it stops the currently running project at current time, thus it fails to start the new project because it cannot start before the previous project ends.

  1. [Current time: 11:00] watson start project_1 --at 11:00
  2. [Current time: 12:00] watson start project_2 --at 11:30
// Expected output
Stopping project project_1
Starting project project_2

// Actual output (duration and ID trimmed)
Stopping project project_1
Error: Task cannot start before the previous task ends.

tukusejssirs avatar Nov 30 '22 13:11 tukusejssirs

Yup, I've already experienced this issue, but didn't took time to investigate. Did you?

jmaupetit avatar Nov 30 '22 13:11 jmaupetit

Experienced the same and think that is a quite common use-case, as one has forgotten to switch project and want to make the switch in the past. Thx for the helpful tool, like it a lot so far.

mims-github avatar Mar 15 '23 07:03 mims-github