'Change soft and hard time limits for a task
**Example request**:
.. sourcecode:: http
POST /api/task/timeout/tasks.sleep HTTP/1.1
Content-Length: 44
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Host: localhost:5555
soft=30&hard=100&workername=celery%40worker1
**Example response**:
.. sourcecode:: http
HTTP/1.1 200 OK
Content-Length: 46
Content-Type: application/json; charset=UTF-8
"message": "new rate limit set successfully"
:query workername: worker name
:reqheader Authorization: optional OAuth token to authenticate
:statuscode 200: no error
:statuscode 401: unauthorized request
:statuscode 404: unknown task/worker'

@web.authenticated
def post(self, taskname):

    workername = self.get_argument('workername')
    hard = self.get_argument('hard', default=None, type=float)
    soft = self.get_argument('soft', default=None, type=float)
    if (taskname not in self.capp.tasks):
        raise web.HTTPError(404, ("Unknown    task    '%s'" % taskname))
    if ((workername is not None) and (not self.is_worker(workername))):
        raise web.HTTPError(404, ("Unknown    worker    '%s'" % workername))
    logger.info("Setting    timeouts    for    '%s'    task    (%s,    %s)", taskname, soft, hard)
    destination = ([workername] if (workername is not None) else None)
    response = self.capp.control.time_limit(taskname, reply=True, hard=hard, soft=soft, destination=destination)
    if (response and ('ok' in response[0][workername])):
        self.write(dict(message=response[0][workername]['ok']))
    else:
        logger.error(response)
        self.set_status(403)
        self.write(("Failed    to    set    timeouts:    '%s'" % self.error_reason(taskname, response)))
