qcfractal/queue/handlers.py
def post(self):
        """Posts new tasks to the task queue.
        """

        body_model, response_model = rest_model("task_queue", "post")
        body = self.parse_bodymodel(body_model)

        # Format and submit tasks
        if not check_procedure_available(body.meta.procedure):
            raise tornado.web.HTTPError(status_code=400, reason="Unknown procedure {}.".format(body.meta.procedure))

        procedure_parser = get_procedure_parser(body.meta.procedure, self.storage, self.logger)

        # Verify the procedure
        verify = procedure_parser.verify_input(body)
        if verify is not True:
            raise tornado.web.HTTPError(status_code=400, reason=verify)

        payload = procedure_parser.submit_tasks(body)
        response = response_model(**payload)

        self.logger.info("POST: TaskQueue -  Added {} tasks.".format(response.meta.n_inserted))
        self.write(response)
Posts new tasks to the task queue.
        
Posts new tasks to the task queue.
Posts new tasks to the task queue .
def post(self):
        body_model, response_model = rest_model("task_queue", "post")
        body = self.parse_bodymodel(body_model)
        if not check_procedure_available(body.meta.procedure):
            raise tornado.web.HTTPError(status_code=400, reason="Unknown procedure {}.".format(body.meta.procedure))
        procedure_parser = get_procedure_parser(body.meta.procedure, self.storage, self.logger)
        verify = procedure_parser.verify_input(body)
        if verify is not True:
            raise tornado.web.HTTPError(status_code=400, reason=verify)
        payload = procedure_parser.submit_tasks(body)
        response = response_model(**payload)
        self.logger.info("POST: TaskQueue -  Added {} tasks.".format(response.meta.n_inserted))
        self.write(response)
def post ( self ) : body_model , response_model = rest_model ( "task_queue" , "post" ) body = self . parse_bodymodel ( body_model ) if not check_procedure_available ( body . meta . procedure ) : raise tornado . web . HTTPError ( status_code = 400 , reason = "Unknown procedure {}." . format ( body . meta . procedure ) ) procedure_parser = get_procedure_parser ( body . meta . procedure , self . storage , self . logger ) verify = procedure_parser . verify_input ( body ) if verify is not True : raise tornado . web . HTTPError ( status_code = 400 , reason = verify ) payload = procedure_parser . submit_tasks ( body ) response = response_model ( ** payload ) self . logger . info ( "POST: TaskQueue -  Added {} tasks." . format ( response . meta . n_inserted ) ) self . write ( response )
Posts new tasks to the task queue.
Posts new tasks to the task queue .
"""Posts new tasks to the task queue.
        """ # Format and submit tasks # Verify the procedure
self