Workflow is not triggering only on one system

Hi everyone,

I’m trying out the workflow feature. I want to disable users and use the joining of a group or the login as trigger.
I have a minimal workflow as follows:

name: Disable inactive users 2
enabled: true
on: user_group_membership_added(test-user-workflow2)
concurrency:
  restart-in-progress: "true"
steps:
  - uses: disable-user
    after: 10s


I can see the event in the keycloak logs when I add a user to the group, however, the workflow is not executing. I also tried a schedule trigger and the user login event as trigger, both do not work.

If I spin up a keycloak locally on my machine and add this workflow, it does work.

Is there any configuration that might be missing on the system where it does not work, that would cause a workflow not to trigger?

Thanks and best regards
Paul

If it runs on your local environment, but not on an other one, it seems that you have some configuration differences between those systems.

One I could think of is the duration, when the internal listener runs. This interval is being set with env var KC_SPI_EVENTS_LISTENER__WORKFLOW_EVENT_LISTENER__STEP_RUNNER_TASK_INTERVAL (or spi-events-listener--workflow-event-listener--step-runner-task-interval on properties file). By default, the listener runs every 12 hours, perhaps in you have set this interval to a shorter lifetime on your local environment?

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.