{% extends "vcelerytaskrunner/layout.html" %} {% block title %}Task Run{% endblock %} {% block content %}

Instructions on how to pass parameters to the task:

Use the args and kwargs concepts as described for apply_async(). However, the values need to be provided as JSON values.

For a sample task of the signature: def my_task(name, age, location=None). To call it as my_task("John", 28, location="San Francisco"):

The positional parameters (args) should be: ["John", 28]

The keyword parameters (kwargs) should be: {"location": "San Francisco"}

Run Task Parameters

{{ form.non_field_errors }}
{% csrf_token %}
{{ form.task }}
{{ form.task.errors }}
{{ form.args }}
{{ form.args.errors }}
{{ form.kwargs }}
{{ form.kwargs.errors }}
{% endblock %} {% block scriptbeforeend %} {% endblock %}