Create a task

Creates a task and adds it to a queue.