• Icon: Technical task Technical task
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 1.6
    • None
    • None
    • 05f527304 (master)

      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?

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            tosaario Toni Saario
            jimis Dimitrios Apostolou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes