Details
-
Technical task
-
Resolution: Fixed
-
P2: Important
-
None
-
None
-
05f527304 (master)
Description
It happened that I did GET /taskDetail or GET /taskWorkItems for tasks that newly appeared in the tasks response and are still running, and the list of workitem_ids or workitems was empty. Here is an example such task:
http://coin.ci.qt.io/coin/integration/qt/qt5/tasks/1681588241
Doing the same API calls later returns a full list. Apparently there is some timing issue in Coin.
The problem is that I need to know if the list of workitems is final or not. I can't keep polling every running task every 10s.
Possible solutions
Alternatives:
- do not show the task in GET /tasks unless the details like workitems and changes are fully loaded and finalized.
- add a state in GET /tasks so that I know a task is "Loading" instead of "Running". That way I can fetch details only for the running tasks.
Other ways? Can I handle it on the client-side?
Attachments
Issue Links
- relates to
-
COIN-1024 GET /tasks is missing "sha" field once every few days
- Closed
For Gerrit Dashboard: COIN-1005 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
472060,6 | Add initializing task status | master | qtqa/tqtc-coin-ci | Status: MERGED | +2 | 0 |