ontime-dev / ont

MIT License
0 stars 0 forks source link

Check if a job is already removed/stopped/started ....etc #3

Closed HassanAlsamahi closed 3 months ago

HassanAlsamahi commented 3 months ago

Right now if a job is already removed and the user tried to remove it again, they will still get "the job is removed" output while in the backend nothing happens.

Actual result: [omar@fedora ~]$ ont list ID Script Next Execution Time Intervals Status

1 | /home/omar/test.sh | 23:49:47 Jul 22 2024 | 1m | Active [omar@fedora ~]$ ont remove 2 Job 2 is removed.

Expected result: [omar@fedora ~]$ ont list ID Script Next Execution Time Intervals Status

1 | /home/omar/test.sh | 23:49:47 Jul 22 2024 | 1m | Active [omar@fedora ~]$ ont remove 2 Job 2 doesn't exist.