Queued Connect-HTTP requests do not work without a commit
Queued Connect-HTTP requests do not work without a commit in Pega 7.1.9.
The execution mode of "Queue" on the Connect-HTTP method does not result in any action being taken unless a commit is performed. The queue entry should be immediately written to the database for the connect request processor to pick up.
Our use case is that there is lot of background operations which do not contain explicit commits on the threads, but that are required to invoke external http services.
The http service invocations we would like to offload to a background agent process.
Steps to Reproduce
- Request a Connect Request Processor instance using queue class name = System-Queue-ExecutionRequest-Connect-Default.
- Create a Connect-HTTP rule. Under "Processing Options", choose "Intended for" = "Queuing". Add the Connect Request Processor instance.
- Create an activity to invoke the Connect-HTTP rule.
- In the Connect-HTTP step of the activity, choose "Queue" as the Execution Mode.
- Run the activity.
- Note that the http service does not get invoked.
- Add a commit step to the end of the activity, and run the activity again.
- Note that the http service is invoked by the agent process.
This is expected behavior for both Connect-HTTP and Connect-SOAP implementations (the latter is explained in PDN document).
Referred to PDN:
0% found this useful