@web.authenticated
    def post(self, taskid):
        logger.info("Aborting task '%s'", taskid)

        result = AbortableAsyncResult(taskid)
        if not self.backend_configured(result):
            raise HTTPError(503)

        result.abort()

        self.write(dict(message="Aborted '%s'" % taskid))
Abort a running task
dataset/ETHPy150Open mher/flower/flower/api/tasks.py/TaskAbort.post