Update penalty in runtime doesn't work

Hello!
I am trying to update penalty of my node

 AstarPath.active.AddWorkItem(
                () =>
                {
                    // Safe to update graphs here
                    GraphNode node = currentGridGraph.GetNearest(transform.position).node;
                    node.Penalty  = 5000;
                }
            );

It doesn’t work, I can see all nodes green in the debug mode. Howether, if I try to set node.Walkable = false; it works perfect. I don’t get it :frowning:

That’s odd. I cannot replicate this. Your script works just fine for me.
bild

Are you sure you are not doing any other graph update or scanning the graphs afterward, that might overwrite your changes?