parameters: (self, workerid, reason = "")
return_statement: return r
docstring: Blocks the worker from working on any of our HITs.
docstring_summary: Blocks the worker from working on any of our HITs.
docstring_tokens: Blocks the worker from working on any of our HITs .
function: def block(self, workerid, reason = ""):
          """
          Blocks the worker from working on any of our HITs.
          """
          logger.error("Blocking worker: {}".format(workerid))
  
          r = self.request("BlockWorker", {"WorkerId": workerid,
                                           "Reason": reason})
          r.validate("BlockWorkerResult/Request/IsValid",
                     "BlockWorkerResult/Request/Errors/Error/Message")
          return r
function_tokens: def block ( self , workerid , reason = "" ) : logger . error ( "Blocking worker: {}" . format ( workerid ) ) r = self . request ( "BlockWorker" , { "WorkerId" : workerid , "Reason" : reason } ) r . validate ( "BlockWorkerResult/Request/IsValid" , "BlockWorkerResult/Request/Errors/Error/Message" ) return r