Details

    • Technical task
    • Resolution: Unresolved
    • P2: Important
    • None
    • None
    • None

    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

          Activity

            People

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

              Dates

                Created:
                Updated: