Put tasks in queued state as soon as we've received them
Put tasks in queued state as soon as we've received them

Also, make sure to check for any errors when trying to a
task's state.

ranjithamca/gru