I've noticed this started to happen suddenly. What changed: we have upgraded from 5.21.0 to 5.22.0.
I've queried the database, and all variables are there in the scope of the process. And the task is part of the scope of the process. Only one variable, of boolean type, has been loaded. Everything else was not.