Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InfluxDB 2.0: The "Run.requestedAt" is filled even if a run wasn't start manually [area/api] #13012

Closed
bednar opened this issue Mar 29, 2019 · 1 comment
Assignees
Labels

Comments

@bednar
Copy link
Contributor

bednar commented Mar 29, 2019

-> POST 
-> http://127.0.0.1:9999/api/v2/tasks
-> {
	"orgID": "039b91ad74036000",
	"status": "active",
	"flux": "option task = {name: \"it task1553864163934-IT\", every: 1s} \n from(bucket:\"my-bucket\") |> range(start: 0) |> last()"
}

-> GET
-> http://127.0.0.1:9999/api/v2/tasks/039e60b9c696b000/runs

<- 200 
<- OK
<- {
	"links": {
		"self": "/api/v2/tasks/039e60b9c696b000/runs",
		"task": "/api/v2/tasks/039e60b9c696b000"
	},
	"runs": [{
		"links": {
			"logs": "/api/v2/tasks/039e60b9c696b000/runs/039e60bbaad6b000/logs",
			"retry": "/api/v2/tasks/039e60b9c696b000/runs/039e60bbaad6b000/retry",
			"self": "/api/v2/tasks/039e60b9c696b000/runs/039e60bbaad6b000",
			"task": "/api/v2/tasks/039e60b9c696b000"
		},
		"id": "039e60bbaad6b000",
		"taskID": "039e60b9c696b000",
		"status": "success",
		"scheduledFor": "2019-03-29T12:56:06Z",
		"startedAt": "2019-03-29T12:56:06.063009Z",
		"finishedAt": "2019-03-29T12:56:06.114127Z",
		"requestedAt": "0001-01-01T00:00:00Z",
		"log": null
	}, {
		"links": {
			"logs": "/api/v2/tasks/039e60b9c696b000/runs/039e60bca4d6b000/logs",
			"retry": "/api/v2/tasks/039e60b9c696b000/runs/039e60bca4d6b000/retry",
			"self": "/api/v2/tasks/039e60b9c696b000/runs/039e60bca4d6b000",
			"task": "/api/v2/tasks/039e60b9c696b000"
		},
		"id": "039e60bca4d6b000",
		"taskID": "039e60b9c696b000",
		"status": "success",
		"scheduledFor": "2019-03-29T12:56:07Z",
		"startedAt": "2019-03-29T12:56:07.063331Z",
		"finishedAt": "2019-03-29T12:56:07.098491Z",
		"requestedAt": "0001-01-01T00:00:00Z",
		"log": null
	}, {
		"links": {
			"logs": "/api/v2/tasks/039e60b9c696b000/runs/039e60bd9ed6b000/logs",
			"retry": "/api/v2/tasks/039e60b9c696b000/runs/039e60bd9ed6b000/retry",
			"self": "/api/v2/tasks/039e60b9c696b000/runs/039e60bd9ed6b000",
			"task": "/api/v2/tasks/039e60b9c696b000"
		},
		"id": "039e60bd9ed6b000",
		"taskID": "039e60b9c696b000",
		"status": "success",
		"scheduledFor": "2019-03-29T12:56:08Z",
		"startedAt": "2019-03-29T12:56:08.065745Z",
		"finishedAt": "2019-03-29T12:56:08.129252Z",
		"requestedAt": "0001-01-01T00:00:00Z",
		"log": null
	}, {
		"links": {
			"logs": "/api/v2/tasks/039e60b9c696b000/runs/039e60be9856b000/logs",
			"retry": "/api/v2/tasks/039e60b9c696b000/runs/039e60be9856b000/retry",
			"self": "/api/v2/tasks/039e60b9c696b000/runs/039e60be9856b000",
			"task": "/api/v2/tasks/039e60b9c696b000"
		},
		"id": "039e60be9856b000",
		"taskID": "039e60b9c696b000",
		"status": "success",
		"scheduledFor": "2019-03-29T12:56:09Z",
		"startedAt": "2019-03-29T12:56:09.06108Z",
		"finishedAt": "2019-03-29T12:56:09.089303Z",
		"requestedAt": "0001-01-01T00:00:00Z",
		"log": null
	}]
}

introduced in #12949

cc @lyondhill

@lyondhill
Copy link
Contributor

@bednar Thanks for finding this. Im pushing up a PR to fix it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants