def get(self):
tasks = self._get_avaliable_tasks()<EOL>if not tasks:<EOL><INDENT>return None<EOL><DEDENT>name, data = tasks[<NUM_LIT:0>]<EOL>self._client.kv.delete(name)<EOL>return data<EOL>
Get a task from the queue.