Closed gshif closed 4 years ago
get all task runs
and get task run
endpoints.https://github.com/influxdata/influxdb/blob/master/http/swagger.yml#L4121-L4191
get_all_task_runs
function (wraps /tasks/{task id}/runs endpoint):
task_id
, token
, after
, limit
, after_time
and before_time
.get_task_run
function(wraps /tasks/{task id}/runs/{run id} endpoint):
task_id
, token
and task_run_id
.Challenges :
2019-04-09T22:41:03Z
and has every
set to 15s
, one would expect first run to happen at 2019-04-09T22:41:18Z
, but it actually is set to 019-04-09T22:41:15Z
create_org_and_bucket
fixture.[x] All of the successful task runs within/between TIME1:TIME2 should be present. Verify count.
every
option task run might start between task creation time + every
. We should probably do the following:
every
(it is possible that task run won't be reported within these times since task run is being written to kafka, to storage --> system bucket of the organization this task belongs to, so there could be some latency.)every
* 4
(if we want to get 4 task runs) and then get task runscount(*)
query to verify number of records.limit = 20
https://github.com/influxdata/idpe/pull/3329 (the above two tests)