Process stucked at service task after calling rest end point

Hello,
our process is getting stucked and never return just after calling rest end point.
Here is the java class Delegate method
public class CreateOrderSequence implements JavaDelegate {
public void execute(DelegateExecution execution) throws Exception {
String Operation = execution.getCurrentActivityName();
System.out.println(“CreateOrderSequence JavaDelegate execute method called!!!”);
String ProcessId = execution.getProcessInstanceId();
String Barcode = execution.getVariable(“palletbarcode”).toString();
String Process = execution.getVariable(“process”).toString();
String IlServiceSocket = execution.getVariable(“socket”).toString();
JSONObject body = new JSONObject();
body.put(“id”, ProcessId);
body.put(“palletbarcode”, Barcode);
body.put(“process”, Process);
RequestEntity request = RequestEntity.post(new URI(“http://” + IlServiceSocket + “api/orchestrator/create_ordersequence”))
.accept(MediaType.APPLICATION_JSON).body(body);

	RestTemplate restTemplate = new RestTemplate();
	ResponseEntity<JSONObject> response = restTemplate.exchange(request, JSONObject.class);
	System.out.println("response:" + response);

}
this class not printing response.

I tried to dump my java threads log dump (jstack.txtjstack.txt (71.3 KB) )

and attaching my bpmn diagram as well
processflow.bpmn (30.0 KB)

below is my application.properties file content

data source config

camunda.bpm.database.type=postgres
spring.datasource.url=jdbc:postgresql://localhost:5432/camunda
spring.datasource.username=postgres
spring.datasource.password=postgres
spring.datasource.driverClassName=org.postgresql.Driver
#camunda.bpm.database.schema-update=create-drop
#camunda.bpm.database.table-prefix=camunda

logging config

logging.level.org.camunda.bpm.example=DEBUG
logging.level.org.camunda.bpm=INFO
logging.level.org.springframework=INFO

camunda config

camunda.bpm.history-level=audit

camunda.bpm.admin-user.id = admin
camunda.bpm.admin-user.password= admin
camunda.bpm.admin-user.first-name= admin
camunda.bpm.admin-user.last-name= admin

server.port=8090
spring.jersey.application-path=/orchestrator

I am not an expert into camunda, please help to solve it.

Can you give more details of which part of the process is causing the problem?

I also notice that for some reason you have an insane retry cycle on your tasks.
R10000/PT30S
This would cause a whole bunch of problems potentially, becuase if an error that can’t be fixed keeps happening then it’s gonna try 10000 times EVERY 30 secords

Hi Nail,
I am getting issue randomly on any of service tasks.
and it’s not happening always, like I successfully ran 300 tasks yesterday night but when today I am trying to run the same kind of tasks it is getting issue.
R10000/PT30S => we did such kind of configurations because sometimes we need to keep alive these processes for 3-4 days(like task initiated in last week and completed in next week after weekend).

even I tried after deleting camunda database from postgres and then create only 5 tasks.

Hi,
I tried some more things like reduced retry time cycles like R1/PT30S but that one also did not solved this problem.
So finally I removed Asynchronous before from Asynchronous continuations section and it is working fine after that.
So please help to how can I make retry mechanism on service tasks ?

my problem is resolved after setting up jobExecutorDeploymentAware property

false

source: Service Task with Async Continuation Never Executes - #12 by Stephen_Bucholtz

Thank you guys.