I have two separate Autotasks set up with the exact same code; one is for Kovan and the other for Mainnet. Because scheduled Autotasks don’t get the
sentinel event schema that webhook Autotasks get, they have no context of the network they’re running on. This might be useful for fetching key-value pairs or secrets from within the Autotask that can be associated with the relevant network.
Currently, it seems I have to either manually change network-specific values in the Autotask code before each deploy (which is unsafe and may lead to incorrect values) or keep multiple network-specific files for each Autotask despite having the same code.