Switched to DynamicVariables, solve context passing issue produced by runnable batching