Resources and Endpoints ======================= Tasks ----- Tasks encapsulate individual invocations of a task service made per release. The Release Coordinator will create new tasks for each enabled service during the creation of a new release and will follow up with each service throughout the lifetime of the task. .. http:get:: /tasks Returns a list of tasks :query limit: Number of results to return in a page, defaults to 10 :query offset: How many items to offset the page by :query release: Filter tasks related to a given release's kf_id :query task_service: Filter tasks related to a given task service's kf_id :query state: Filter tasks by a given state **Example**: .. http:example:: curl GET /tasks?release=RE_C6PTRN2K&task_service=TS_WPEKCZHQ HTTP/1.1 Host: kf-release-coord.kidsfirstdrc.org Accept: application/json HTTP/1.1 200 OK Allow: GET, POST, HEAD, OPTIONS Content-Type: application/json Vary: Accept { "count": 1, "next": null, "previous": null, "results": [ { "kf_id": "TA_WAAE3ZBN", "state": "canceled", "progress": 0, "release": "https://kf-release-coord.kidsfirstdrc.org/releases/RE_C6PTRN2K", "task_service": "https://kf-release-coord.kidsfirstdrc.org/task-services/TS_WPEKCZHQ", "created_at": "2018-09-13T19:48:49.467518Z", "service_name": "Portal ETL Task Service" } ] } .. http:patch:: /tasks/(kf_id) Updates a task of ``kf_id`` with state or progress. Use by task services to report progress or status of one of the tasks. :