alosrafas1213 / NCTaskManager

0 stars 0 forks source link

nextTimeAfter issues #2

Open NC-MXTC opened 2 years ago

NC-MXTC commented 2 years ago

https://github.com/alosrafas1213/NCTaskManager/blob/bed7dcf8f90755fb8579132abd8296c5b9062995/src/main/java/mx/edu/j2se/rubio/tasks/Task.java#L130-L147

Where do you check if the task is active?

What about non-repetitive?

NC-MXTC commented 2 years ago

https://github.com/alosrafas1213/NCTaskManager/blob/bed7dcf8f90755fb8579132abd8296c5b9062995/src/main/java/mx/edu/j2se/rubio/tasks/Task.java#L133

What about the first execution just at the start time?

NC-MXTC commented 2 years ago

Correctly checking for active and non-repetitive. But still returning first iteration (start+interval) not right on start.