Multi-threaded Local Search's ExecutorService didn't terminate within timeout

44 views
Skip to first unread message

Shi Alexander

unread,
Aug 16, 2023, 9:48:56 AM8/16/23
to OptaPlanner development
Hi there,

When I set a solver config.xml as below:

    <termination>
        <secondsSpentLimit>50</secondsSpentLimit>
    </termination>

    <localSearch>
        <termination>
            <secondsSpentLimit>5</secondsSpentLimit>
        </termination>
        <localSearchType>TABU_SEARCH</localSearchType>
    </localSearch>

An error occurs:  
ThreadUtils.shutdownAwaitOrKill: Multi-threaded Local Search's ExecutorService didn't terminate within timeout (1 seconds).

Is there any ideas to set shutdownAwaitOrKill ?

Thank  you.

Geoffrey De Smet

unread,
Aug 18, 2023, 4:41:44 AM8/18/23
to OptaPlanner development
Shi,

Might you have a reproducer for this issue?

With kind regards,
Geoffrey De Smet
https://timefold.ai
Reply all
Reply to author
Forward
0 new messages