Re: [optaplanner-dev] SolverManager: dynamic SolverConfig

Skip to first unread message

Geoffrey De Smet

Aug 12, 2022, 10:57:03 AM8/12/22

This is a common use case that we don't cover well. Please create a JIRA for it.

The more-or-less workaround is:

SolverConfig solverConfig;

And then call solverConfig.copyConfig().withTerminationSpentLimit(...) before using it to create a SolverManager.

But the trouble is that you create a new SolverManager per request, while there really should be only one 1 SolverManager (= 1 thread pool) per app.

With kind regards,
Geoffrey De Smet

On 05/08/2022 10:38, 'Marius Giepz' via OptaPlanner development wrote:
We created an Optaplanner service on Quarkus. A SolverManager gets injected into the REST resource. As we understand, the SolverManager is provided by the Quarkus extension and is a Singleton. However we need to enable the user/client to configure the termination time on a per instance basis.
Is that possible somehow?

best regards,
You received this message because you are subscribed to the Google Groups "OptaPlanner development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
Reply all
Reply to author
0 new messages