apache / incubator-kie-tools

Tools for KIE
Apache License 2.0
252 stars 185 forks source link

kie-issues#2656: [SonataFlow] Jobs List Status Continues to Report "Expires in NN Minutes" After Job Expiration #2727

Closed fantonangeli closed 1 week ago

fantonangeli commented 2 weeks ago

Closes https://github.com/apache/incubator-kie-tools/issues/2656

Description:

The jobs list status continues to display expires in NN minutes even after a job has expired.

Steps to Reproduce

  1. Go to: https://start.kubesmarts.org/dev
  2. Setup an OpenShift connection with DevMode
  3. Create a workflow using https://github.com/dmarrazzo/swf-simple-order/blob/main/src/main/resources/timeout.sw.yaml
  4. Upload the workflow to OpenShift in DevMode
  5. Start the workflow and quickly move to the next step
  6. Open the workflow details and view the Jobs list
  7. Observe that the job shows "expires in a few seconds" (see screenshot 1)
  8. Wait a few minutes after the expiration time
  9. Observe that the job expiration changes to "expires in NN minutes" and the status remains as "scheduled" (see screenshot 2)

Expected Result

The jobs list should refresh after the job expiration.

Actual Result

After expiration, the jobs list shows "expires in NN minutes" and the status remains "scheduled" even after expiration.

image image

Solution:

How to test locally:

Preview:

kie-tools-issues#2656.webm

Notes: