@inspect_command(variadic=u'ids', signature=u'[id1 [id2 [... [idN]]]]')
def query_task(state, ids, **kwargs):
 return {req.id: (_state_of_task(req), req.info()) for req in _find_requests_by_id(maybe_list(ids))}

@ inspect_command ( variadic = u'ids' , signature = u'[id1 [id2 [... [idN]]]]' ) def query_task ( state , ids , ** kwargs ) : return { req . id : ( _state_of_task ( req ) , req . info ( ) ) for req in _find_requests_by_id ( maybe_list ( ids ) ) }
query for task information by id .