engine: graph: Avoid race on fast pause variable

This code is basically unused, but let's keep it in for now in case we
eventually replace it with some contextual ctx code instead.
This commit is contained in:
James Shubin
2025-09-09 00:02:14 -04:00
parent 05d72b339d
commit 4e523231d6
2 changed files with 7 additions and 5 deletions

View File

@@ -376,7 +376,7 @@ func (obj *Engine) Process(ctx context.Context, vertex pgraph.Vertex) error {
// so that the graph doesn't go on running forever until
// it's completely done. This is an optional feature and
// we can select it via ^C on user exit or via the GAPI.
if obj.fastPause {
if obj.fastPause.Load() {
obj.Logf("%s: fast pausing, poke skipped", res)
continue
}