Tasks related code - creating, stopping, resuming
Find task in the queue