Tonight we are copying prod to sandbox. I'm quite ...
# general
s
Tonight we are copying prod to sandbox. I'm quite nervous because of the map reduced / scheduled scripts. Is there's a way to disable all of them ?
e
As of 2023.1, Scheduled Scripts are no longer automatically scheduled to run in sandbox. The don’t clearly state if that means Map/Reduce as well, but I was assuming they were included.
Scheduled Scripts No Longer Run Automatically in Sandbox After a Refresh Scheduled scripts are account-specific. Scheduled scripts configured in production will no longer run automatically in a sandbox account after a refresh. Instead, scheduled scripts can be set up separately in a sandbox account. For more information, see the help topic Features Available for Testing in a Sandbox
s
Good. Let me read the documentation. I hope it's the same for Map reduce
e
I have script parameters for all my MR scripts where I fill in the environment (PRODUCTION or SANDBOX) and each MR script has a check for the runtime environment. If runtime.EnvType equals the script parameter value it runs, other wise it exits. So when you refresh SB with PROD the script parameter will be PRODUCTION and the code will not execute because the runtime environment is SANDBOX>
👀 1