code: def handle_add(queue_name):
      
      source = request.form.get('source', request.remote_addr, type=str)
      try:
          task_id = work_queue.add(
              queue_name,
              payload=request.form.get('payload', type=str),
              content_type=request.form.get('content_type', type=str),
              source=source,
              task_id=request.form.get('task_id', type=str))
      except work_queue.Error, e:
          return utils.jsonify_error(e)
  
      db.session.commit()
      logging.info('Task added: queue=%r, task_id=%r, source=%r',
                   queue_name, task_id, source)
      return flask.jsonify(task_id=task_id)
docs: Adds a task to a queue.