orkes-conductor-community
orkes-conductor-community copied to clipboard
Conductor client does not work with spring cloud config
Describe the bug We are working on an adhoc task workflow. For that we have created a new spring boot service with conductor client. We are using conductor server in docker [orkesio/orkes-conductor-community-standalone:latest]. My service works fine without spring cloud config. It is able to poll for the tasks and execute it. However, when I add spring boot cloud config dependencies, it is able to poll for tasks and hence it does not execute it.
Steps To Reproduce Steps to reproduce the behavior: I have created a demo project in my github.
- Go to https://github.com/arpitrathore/conductor-cloud-config-test)
- Follow the steps in the README to spin up two docker containers. One for spring cloud config and one for conductor server.
- Start the service by running the main method in src/main/java/com/arpitrathore/test/Application.java
- Run following curl command to submit a task
curl -H 'Content-Type: application/json' http://localhost:8080/submit/ -d '{"someId": 123}'
Notice that the service is NOT able to poll the task and execute it.
- Now switch the branch to
without-cloud-config
. This branch does not have spring cloud dependency. Run the main method in src/main/java/com/arpitrathore/test/Application.java again. - Run following curl command to submit a task
curl -H 'Content-Type: application/json' http://localhost:8080/submit/ -d '{"someId": 123}'
Notice the service is able to poll the task and execute it.
Expected behavior Service should poll and execute the task with or without spring cloud config dependency
Device/browser
- OS: Mac OS M1
- Browser NA