Closed qwelias closed 1 year ago
Yes, it is possible. At the moment, the search is also interrupted by ctrl+C combination when vrp-cli is used.
https://github.com/reinterpretcat/vrp/blob/master/vrp-cli/src/commands/solve.rs#L564-L589
Nice, SIGINT works!
I haven't looked at the source yet, but from the current CLI behaviour
max-time
option interrupts solution search and returns the current best. Would it be possible to do the same upon receiving SIGTERM (or another signal in case of any conflicts)?