Skip to content

Cannot execute the request because an asynchronous operation is in progress. Please use a different connection #1

@ketan-dad

Description

@ketan-dad

Hi,
Thanks for this project. I have update this project to a multi threading app.

Class added :
@EnableScheduling
@component
public class Scheduler {
@async("asyncExecutor")
@scheduled(fixedRateString = "${schedule.config.rule.violation.in.millis}")
void runScheduler() {
// SAVE //update //Delete with dummy values.
}
}

Now if thread is doing some DB manipulation and at the same time if API is called. Sometime it throw exception
"Cannot execute the request because an asynchronous operation is in progress. Please use a different connection" .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions