Uploaded image for project: 'Coin'
  1. Coin
  2. COIN-819 Implement GET tasks, taskDetails and workItemDetails APIs
  3. COIN-933

completed_on timestamp is empty for tasks that got interrupted by a restart

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Fixed
    • P2: Important
    • 1.5
    • Storage
    • None

    Description

      While doing API request GET /tasks I noticed the following:

      INSERT 1 task:  Cancelled task_id: 1678542320 
      WARNING: task 1678542320 is finished but is missing 'completed_on' timestamp!
      INSERT 1 task:  Cancelled task_id: 1678542517
      WARNING: task 1678542517 is finished but is missing 'completed_on' timestamp!
      INSERT 1 task:  Cancelled task_id: 1678542516
      WARNING: task 1678542516 is finished but is missing 'completed_on' timestamp!
      INSERT 1 task:  Cancelled task_id: 1678542514
      WARNING: task 1678542514 is finished but is missing 'completed_on' timestamp!
      INSERT 1 task:  Cancelled task_id: 1678542512
      WARNING: task 1678542512 is finished but is missing 'completed_on' timestamp!
      INSERT 1 task:  Cancelled task_id: 1678542515
      WARNING: task 1678542515 is finished but is missing 'completed_on' timestamp!
      INSERT 1 task:  Cancelled task_id: 1678542513
      WARNING: task 1678542513 is finished but is missing 'completed_on' timestamp!
      INSERT 1 task:  Cancelled task_id: 1678542511
      WARNING: task 1678542511 is finished but is missing 'completed_on' timestamp!
      

      The completed_on timestamp should never be missing from any task or workitem, unless it is still ongoing. Would it make sense to set it to reserved value, or even to the same timestamp as started on?

      Attachments

        Issue Links

          For Gerrit Dashboard: COIN-933
          # Subject Branch Project Status CR V

          Activity

            People

              akpietik Aku Pietikäinen
              jimis Dimitrios Apostolou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes