orkes-io / orkes-conductor-community

Orkes Conductor is a microservices orchestration engine.
Other
111 stars 27 forks source link

Conductor client does not work with spring cloud config #52

Open arpitrathore opened 8 months ago

arpitrathore commented 8 months ago

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.

  5. 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.

  6. 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