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

Long running workflow appears stuck, no logs (calling subflows in sync mode) #326

Open
bvandewe opened this issue Nov 23, 2022 · 2 comments
Assignees
Labels
app: server Concerns the server app: worker Concerns the worker app priority: high Indicates a high priority issue status: investigate An issue that needs to be investigated more thoroughly type: bug Something isn't working

Comments

@bvandewe
Copy link

What happened:

A "parent" workflow appears stuck while executing a foreach state that calls a subFlowRef. The first two instances of the "child" flows completed successfully (got Workflow executed and Application is shutting down... in the workers' logs) but then no other instances were started and the parent flow appears stuck, nothing happens in the logs, no error/warning message at all.

Parent/Caller flow
...
"states": [
...
{
      "name": "Reset Widgets",
      "type": "foreach",
      "inputCollection": ".forms",
      "actions": [
        {
          "name": "Create or Reset form widgets",
          "subFlowRef": {
            "invoke": "sync",
            "workflowId": "form-indicators-reset",
            "version": "latest"
          }
        }
      ],
      "iterationParam": "form",
      "end": true
    }

What you expected to happen:

With the input data, i expected 50x subflow instances to be created... Only two were started and executed successfully.

How to reproduce it:

Try running a workflow that iteratively calls a subflow for more than 2 expected subflow instances...

Anything else we need to know?:

Will try in async mode and revert asap.

Environment:

Latest release ( 0.3.15), K8s v1.22.3

@cdavernas cdavernas added type: bug Something isn't working app: worker Concerns the worker app priority: high Indicates a high priority issue app: server Concerns the server status: investigate An issue that needs to be investigated more thoroughly labels Nov 24, 2022
@cdavernas cdavernas self-assigned this Nov 24, 2022
@cdavernas
Copy link
Member

@bvandewe Thanks for the feedback! I'll investigate asap ;)

@icableo
Copy link

icableo commented Apr 24, 2023

@bvandewe @cdavernas same issue.
If for example we have 4 iterations:

  • Sync mode only runs 2 iterations and the workflow gets stuck.
  • Async mode execute the 4 iterations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app: server Concerns the server app: worker Concerns the worker app priority: high Indicates a high priority issue status: investigate An issue that needs to be investigated more thoroughly type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants