jazzband / Watson

:watch: A wonderful CLI to track your time!
http://tailordev.github.io/Watson/
MIT License
2.46k stars 240 forks source link

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

Open tukusejssirs opened 1 year ago

tukusejssirs commented 1 year ago

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.
jmaupetit commented 1 year ago

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

mims-github commented 1 year ago

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.