ontime-dev / ont

MIT License
0 stars 0 forks source link

ont remove doesn't remove job from list #1

Closed HassanAlsamahi closed 3 months ago

HassanAlsamahi commented 7 months ago

ont remove doesn't remove the job from the list.

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

1 | | | | 2 | /home/omar/test.sh | 13:20:39 Mar 10 2024 | 1d | Active 3 | /home/omar/test.sh | 13:20:50 Mar 11 2024 | 1d | Active 4 | /home/omar/test.sh | 13:21:41 Mar 10 2024 | 3s | Active 5 | /home/omar/test.sh | 13:27:41 Mar 10 2024 | 3s | Inactive 6 | /home/omar/test.sh | 13:27:41 Mar 10 2024 | 3s | Inactive 7 | /home/omar/test.sh | 13:27:41 Mar 10 2024 | 3s | Inactive 8 | /home/omar/test.sh | | 3s | Inactive

After: [omar@fedora ~]$ ont remove 7 Job 7 removed from records.

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

1 | | | | 2 | /home/omar/test.sh | 13:20:39 Mar 10 2024 | 1d | Active 3 | /home/omar/test.sh | 13:20:50 Mar 11 2024 | 1d | Active 4 | /home/omar/test.sh | 13:21:41 Mar 10 2024 | 3s | Active 5 | /home/omar/test.sh | 13:27:41 Mar 10 2024 | 3s | Inactive 6 | /home/omar/test.sh | 13:27:41 Mar 10 2024 | 3s | Inactive 7 | /home/omar/test.sh | 13:27:41 Mar 10 2024 | 3s | Inactive 8 | /home/omar/test.sh | | 3s | Inactive