Moved the prioritisation, delay, and ttr to the task, away from the queue handler