Create a new StartEndTask.
the callback to run when the task starts
the callback to run when the task finishes