I’m trying to use the OnSlaveStartingJob callback to change a couple of slave settings based on some custom logic and saving those settings back using RepositoryUtils.SaveSlaveSettings, but it looks like these changes aren’t actually applied right away. It’s only next time when that same slave dequeues a task that those updated settings are used.
Is there are workaround for this? Or is there a better way to change some slave settings right before it picks up a task? I’m currently looking at changing cpu affinities based on some custom logic.
Thanks in advance,
Martijn