Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-1907

Add daemon to SolverProperties in OptaPlanner Spring Boot extension

XMLWordPrintable

    • 2020 Week 10-12 (from Mar 2)
    • 1
    • NEW
    • NEW

      I'm injecting a SolverFactory and doing all of the solver configuration with a combination of XML and application.properties so I'd like to be able to set daemon mode the same way:

      application.properties
      optaplanner.solver-config-xml=org/optaweb/vehiclerouting/solver/vehicleRoutingSolverConfig.xml
      optaplanner.solver.termination.spent-limit=1m
      optaplanner.solver.daemon=true
      

      Yes, I could set it in solverConfig.xml.
      Yes, I can inject a SolverConfig instead of SolverFactory, change the config and the create factory from it.

      Is daemon mode something that shouldn't be possible to change through properties?

              jlocker Jiří Locker (Inactive)
              jlocker Jiří Locker (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: