Alirie Gray
16c400c0d0
feat(tasks): sort runs by most recently scheduled
2019-08-12 12:32:17 -07:00
Alirie Gray
ca6625c261
fix(tasks): add run limit check to analytical store
2019-08-12 08:51:05 -07:00
Lyon Hill
e922c8a26f
feat(task): add task types ( #14567 )
2019-08-06 10:27:52 -06:00
Alirie Gray
c04f3a2b30
chore(tasks): remove old auth code and allow only token auth
2019-07-26 09:51:32 -07:00
Alirie Gray
c7f09d6a56
chore(tasks): use pointers for task errors ( #14343 )
2019-07-15 13:57:51 -07:00
Alirie Gray
0344e98798
Tasks/remove option caching ( #14283 )
...
chore(tasks): remove option caching from tests
2019-07-09 10:46:13 -07:00
Alirie Gray
66157c9d44
chore(tasks): consolidate task errors into task_errors.go
2019-06-17 16:03:18 -07:00
Alirie Gray
0ae2d318b1
chore(tasks): update run limits in swagger and FindRuns
2019-06-12 14:48:32 -07:00
Alirie Gray
04a427e99e
feat(tasks): add runID to Log struct
2019-06-06 11:24:38 -07:00
Lyon Hill
ab79b68840
fix(task): Remove older unused task store code. ( #14068 )
...
* fix(task): Remove older unused task store code.
2019-06-06 10:05:27 -06:00
Chris Goller
510f7bb057
fix(task): lookup fully hydrated task after creation ( #13709 )
...
* fix(task): lookup fully hydrated task after creation
* ci(circle): save go race and litmus test results artifact
2019-05-01 14:54:27 -06:00
Lyon Hill
5b8c4ea0e8
fix task limit in kv and add tests Also fix a minor race condition in task scheduler ( #13538 )
...
* fix task limit in kv and add tests Also fix a minor race condition in task scheduler
* update comment
2019-04-22 13:09:19 -06:00
Lyon Hill
726fbefe9a
Integrate the new changes to tasks ( #13473 )
...
* Integrat the new changes to tasks
2019-04-19 08:37:59 -06:00
Todd Persen
cd64ec8718
Fix typos in miscellaneous packages
2019-04-17 13:30:22 -07:00
Lyon Hill
9a41cc46e4
Create an analytical storage middleware layer ( #13418 )
...
* Create an analytical storage middleware layer
2019-04-17 08:41:05 -06:00
Lyon Hill
c29e77e6e4
build kv based TaskService ( #13228 )
...
* chore(tasks): task kv
* WIP
* get the kv task service complete and passing test
2019-04-09 16:52:54 -06:00
kelwang
be674622c6
Revert "fix(inmem): remove the old inmem implementation"
2019-04-09 14:24:40 -04:00
zhulongcheng
cacd6a8223
fix(inmem): replace inmem.Service with kv.Service
2019-04-08 15:18:38 +08:00
docmerlin (j. Emrys Landivar)
cc408e9e78
chore(tasks): more task tests
2019-04-05 13:27:48 -05:00
docmerlin (j. Emrys Landivar)
492d8406aa
fix(tasks): make durations visibly show up nicely
2019-03-29 13:50:26 -05:00
Lyon Hill
c78344c441
update task schedler to use the new task control service ( #12949 )
2019-03-28 16:52:25 -06:00
Lyon Hill
291319483d
Update task servicetest to move dependency to the new TaskControlService ( #12817 )
...
* Update task servicetest to move dependency to the new TaskControlService
closes #12724
We will now have the capability to write new task services that dont have to implement the backend.Store or LogReader or LogWriters
2019-03-21 15:11:22 -06:00
docmerlin (j. Emrys Landivar)
ea82893abd
feat(tasks): remove removable options
2019-03-19 10:24:42 -05:00
Mark Rushakoff
ceaed4c31e
fix(task): only update authorization when requested
...
The previous code was mistakenly updating the task's authorization even
when it wasn't part of the update request.
2019-03-06 08:27:05 -08:00
Lyon Hill
17026c2053
change task logs from a string to a struct ( #12363 )
...
* change task logs from a string to a struct
2019-03-05 15:58:33 -07:00
docmerlin (j. Emrys Landivar)
80242b3446
fix(tasks): fix task update validation
2019-03-01 09:00:53 -06:00
Lyon Hill
b3f450eca9
Allow the CLI to find tasks by org name ( #12202 )
...
* Allow the CLI to find tasks by org name
2019-02-27 08:56:32 -07:00
Lyon Hill
3665feef38
Populate organization name on task create action ( #12004 )
...
* Populate organization name on task create action
* Move the responsiblity of organization lookup to the platform adaptor
2019-02-20 13:36:35 -07:00
Mark Rushakoff
cbef811c63
refactor(task): remove explicit org from run/log lookup
...
Task ID is now a required value on run and log filters. It was
effectively required by all implementations before anyway, so now those
types reflect that requirement.
Organization ID was removed from those same fields. The TaskService
looks up the organization ID via the task in cases where we need it at a
lower layer.
2019-02-16 14:34:49 -08:00
Lyon Hill
48cc643992
Clean out user from the task store's ( #11882 )
...
* Clean out user from the task store's
2019-02-15 15:50:09 -07:00
Mark Rushakoff
caf08b5078
feat(task): store authorization ID with task
...
Accept token when creating or updating a task, but only report back the
authorization ID.
This means the executor and the platform adapter are now both aware of
an Authorization Service.
2019-02-14 08:53:40 -08:00
Mark Rushakoff
007f5059c7
refactor(task): extract TaskCreate struct
...
With the ongoing authorization work, creation arguments will differ from
what's returned on reads. More specifically, creation will accept a
token, but reads will report back a token ID.
This refactor facilitates that authorization work, and also brings the
code closer to the swagger definition, for the TaskCreateRequest type in
particular.
2019-02-12 15:10:03 -08:00
Mark Rushakoff
4b80fc43c4
test(task): deflake test for CreatedAt, UpdatedAt
...
The earliest time needed to be captured before creating the task, not
after; otherwise a test running close to a second boundary would fail.
Also make the failure message slightly more readable.
2019-02-12 11:35:55 -08:00
Lyon Hill
512af6e4b3
Add createdAt and updatedAt to tasks api ( #11794 )
...
fixes #11061
2019-02-12 11:06:23 -07:00
Mark Rushakoff
a0ff60c075
fix(task): respect limit when finding runs
2019-01-24 15:32:16 -08:00
Lyon Hill
bdf65f5dfe
Remove owner from task json responses ( #11504 )
...
* Remove owner from task json responses
* allow for crud to run in parallel with other tests
To be parallel we just cant assume we only have 1 task.
2019-01-24 16:05:24 -07:00
Mark Rushakoff
882750c751
fix(task): populate created task response, the same as finding
...
The response from a created task was missing the name field; now a test
ensures that response matches what is returned when listing tasks.
2019-01-22 11:32:17 -08:00
Lyon Hill
523e52d662
Show organization names in task api actions ( #11223 )
...
* Show organization names on task actions.
closes #10876
2019-01-18 09:10:14 -07:00
Nathaniel Cook
d0603457b7
refactor(flux): make packages mirror Flux namespaces
2019-01-14 18:00:45 -07:00
Nathaniel Cook
622106caaa
Merge branch 'master' into flux-staging
2019-01-14 17:03:57 -07:00
Nathaniel Cook
1708a41fa7
refactor: update query functions for Flux builtins
2019-01-11 13:11:57 -07:00
j. Emrys Landivar (docmerlin)
a2674fa03d
feat(tasks): update task options from api
2019-01-11 11:55:46 -06:00
Mark Rushakoff
d73d73c0d4
chore: rename imports from platform to influxdb
...
I did this with a dumb editor macro, so some comments changed too.
Also rename root package from platform to influxdb.
In interest of minimizing risk, anyone importing the root package has
now aliased it to "platform" so that no changes beyond imports were
necessary in those files.
Lastly, replace the old platform module to local path /dev/null so that
nobody can accidentally reintroduce a platform dependency while
migrating platform code to influxdb.
2019-01-09 20:51:47 -08:00
Mark Rushakoff
0e41f240f2
feat(task): support forcing a run with arbitrary timestamp
...
Also rename RetryAlreadyQueuedError by running:
gorename -from '"github.com/influxdata/platform/task/backend".RetryAlreadyQueuedError' -to RequestStillQueuedError
and some further manual cleanup for comments.
2018-12-21 14:37:53 -05:00
Lyon Hill
678acd5307
feat(task): Allow the most recent run time to be shown in the api. ( #1765 )
...
* feat(task): Allow the most recent run time to be shown in the api.
When showing tasks in the api latest_completed will now show in the api if it has been run.
fixes #1705
2018-12-06 16:46:16 -07:00
j. Emrys Landivar (docmerlin)
0cb888afc0
Change delay to offset in tasks to match the flux spec
2018-12-06 11:00:07 -06:00
j. Emrys Landivar (docmerlin)
7ffd18c7b8
remove requestedAt param from retry call and refactor TaskService interface
2018-11-30 13:14:21 -06:00
Ben Johnson
868fdbbe03
megacheck
2018-11-28 15:52:11 -07:00
docmerlin (j. Emrys Landivar)
57fe285e56
add run return to rerun
2018-11-27 11:48:32 -06:00
Mark Rushakoff
232fb90edb
feat(task): add Delay field to platform.Task
...
This brings Delay in line with Every and Cron.
2018-11-21 14:37:35 -08:00