optimization of the task scheduling in order to stop more easily a running campaign