Closed vbratitsa-plana closed 2 years ago
Hi, I try to create a worker for netflix conductor this is config for
"ConductorClientSettings": { "ServerUrl": "http://127.0.0.1:8090/api", "WorkerName": "SimpleWorkflow", "MaxSleepInterval": "30000", "SleepInterval": "30000", "Domain": "", "ConcurrentWorkers": "1", "IntervalStrategy": "Linear", "TaskType": "dummy-service", "Priority": null },
Also I tried port: http://127.0.0.1:8080/api but I have an error No connection could be made because the target machine actively refused it. could you please suggest me what I do wrong?) Thank you!
I have some progress if I use port 8080, but I got error 404 for endpoint: /tasks/poll/dummy-service?workerid=115429d3-607f-45c4-88a0-e84579d331d6 dummy-service is deployed, but worker with id 115429d3-607f-45c4-88a0-e84579d331d6 - not found
Hi @vbratitsa, I haven't been using this library since I created my own (shameless plug: https://github.com/erikbrgr/supersimpleconductor) but in this aspect they work mostly the same. In your case "dummy-service" is a Task that should be registered with Conductor using their metadata api (/api/metadata/taskdefs). This is probably why you are getting the 404. The workerId is just a parameter telling Conductor which worker process is polling the Task.
Hope this helps!
Hi @vbratitsa, I haven't been using this library since I created my own (shameless plug: https://github.com/erikbrgr/supersimpleconductor) but in this aspect they work mostly the same. In your case "dummy-service" is a Task that should be registered with Conductor using their metadata api (/api/metadata/taskdefs). This is probably why you are getting the 404. The workerId is just a parameter telling Conductor which worker process is polling the Task.
Hope this helps!
I found solution) In config file I set http://127.0.0.1:8080/api and when I convert it to URL, api was removed, there shoud be '/' after 'api' like http://127.0.0.1:8080/api/ :)
Thanks for your answer!
Hi, I try to create a worker for netflix conductor this is config for
"ConductorClientSettings": { "ServerUrl": "http://127.0.0.1:8090/api", "WorkerName": "SimpleWorkflow", "MaxSleepInterval": "30000", "SleepInterval": "30000", "Domain": "", "ConcurrentWorkers": "1", "IntervalStrategy": "Linear", "TaskType": "dummy-service", "Priority": null },
Also I tried port: http://127.0.0.1:8080/api but I have an error No connection could be made because the target machine actively refused it. could you please suggest me what I do wrong?) Thank you!