Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service Workflow States table doesn't show running states #9189

Closed
agrare opened this issue May 15, 2024 · 2 comments · Fixed by #9191
Closed

Service Workflow States table doesn't show running states #9189

agrare opened this issue May 15, 2024 · 2 comments · Fixed by #9191
Assignees
Labels

Comments

@agrare
Copy link
Member

agrare commented May 15, 2024

If I have a running workflow for a service that is in progress the Service Request Workflow States table doesn't show the current state

Example workflow context:

 context:
  {"Task"=>{},
   "State"=>
    {"Guid"=>"0e95574e-a28b-4692-906b-ec595c96e1c8",
     "Name"=>"Provision",
     "Input"=>{},
     "EnteredTime"=>"2024-05-15T17:42:55Z",
     "RunnerContext"=>{"method"=>"provision_execute", "running"=>true, "miq_request_task_id"=>6}},
   "Execution"=>
    {"Input"=>{},
     "StartTime"=>"2024-05-15T17:42:55Z",
     "_object_id"=>6,
     "_object_type"=>"ManageIQ::Providers::Vmware::InfraManager::Provision",
     "_manageiq_api_url"=>"http://localhost:4000"},
   "StateHistory"=>
    [{"Guid"=>"22f6d0a7-0143-4415-b11b-64f9679af00f",
      "Name"=>"PreProvision",
      "Input"=>{},
      "Output"=>{},
      "Duration"=>0.643860947,
      "NextState"=>"Provision",
      "EnteredTime"=>"2024-05-15T17:42:55Z",
      "FinishedTime"=>"2024-05-15T17:42:55Z"}],
   "StateMachine"=>{}}

As you can see the current state is "Provision":

{"Guid"=>"0e95574e-a28b-4692-906b-ec595c96e1c8",
     "Name"=>"Provision",
     "Input"=>{},
     "EnteredTime"=>"2024-05-15T17:42:55Z",
     "RunnerContext"=>{"method"=>"provision_execute", "running"=>true, "miq_request_task_id"=>6}}

It has an EnteredTime and no FinishedTime because it is currently running.

The Workflow States table only shows the prior state PreProvision

Screenshot from 2024-05-15 13-43-11

@agrare agrare added the bug label May 15, 2024
@agrare
Copy link
Member Author

agrare commented May 15, 2024

cc @GilbertCherrie

@GilbertCherrie
Copy link
Member

This pr should fix this issue: #9191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants