feat(scheduler): Make scheduler re-runnable - #103
Conversation
e5afa47 to
bb099b7
Compare
[Maven Build Status]📑 Commit: 📦 Download artifact: Generator.jar |
8cee333 to
dc5e407
Compare
9fd69fd to
f4de93b
Compare
f4de93b to
b237069
Compare
indyteo
left a comment
There was a problem hiding this comment.
Il y a une faute dans le message de commit, runnable
b237069 to
f180410
Compare
pyrollo
left a comment
There was a problem hiding this comment.
Quelques remarques + validation à ajouter
f180410 to
5aa9150
Compare
|
Du coup, rapidement, quelques changement depuis la dernière version!
La javadoc et test sont bons, il me manque plus qu'un dernier squash. (A force de relire, il y a de grande chance qu'il me reste des coquilles, regarderai ça à tête reposée) Edit: Vient de voir qu'un test ne passe pas ici, timeout trop court peut-être |
f1bdd5e to
c8ec307
Compare
pyrollo
left a comment
There was a problem hiding this comment.
J'ai juste quelques remarques de style.
Je n'ai pas tout relu la javadoc, je ferai ça plus tard.
cf6f57e to
19129ac
Compare
fe199da to
ae480f4
Compare
indyteo
left a comment
There was a problem hiding this comment.
Il faut que tu nettoyes tes commits, sinon c'est bon pour moi :)
ae480f4 to
0ed04c0
Compare
Issue
MINALAC-125
Changes
Modify
Schedulerto make it resetable so tasks can be relaunched after completion.Feature description
ScheduledTaskcontains now its dependencies (the others that need to be completed) and its dependants (the others tasks that depend on it).The
Schedulernow relies on the state of the tasks to manage task execution.runThenReset()replacesstart()andwaitUntilAllTasksFinished(): it starts the scheduler, waits for tasks completion and then reset it, so the scheduler can be re-run.Reason
This will be needed for tiling generation.
Self-checks
Relevant documentation inside the/docsfolder has been updatedAll examples indocs/usage/Examples.mdwork the same (or have been adapted if subject to changes in this PR)Questions/Others
Properly terminated(SameExecutorService?ExecutorService)ScheduledTaskState?