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
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.