It is updated from the Job thread. In Scala local `vars` can be captured by closures, so they can be volatile too.