orkes-conductor-community icon indicating copy to clipboard operation
orkes-conductor-community copied to clipboard

Conductor client does not work with spring cloud config

Open arpitrathore opened this issue 11 months ago • 0 comments

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.

  1. Go to https://github.com/arpitrathore/conductor-cloud-config-test)
  2. Follow the steps in the README to spin up two docker containers. One for spring cloud config and one for conductor server.
  3. Start the service by running the main method in src/main/java/com/arpitrathore/test/Application.java
  4. 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.

  1. 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.
  2. 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

arpitrathore avatar Mar 08 '24 18:03 arpitrathore