Why aren changes to imported Python modules picked up in my STAX job?
Use the built-in Python “reload” function if you want to pick up changes made to imported Python modules without having to unregister and register the STAX service (either by stopping STAF and restarting it or by using the SERVICE service to dynamically delete and add the STAX service). Note that there is a “gotcha” in that reload may not impact “from” imports. Reloading allows you to test Python module changes immediately after reloads, without having to unregister the STAX service. Here’s more detailed information about using the built-in Python “reload” function. One of the most common questions Python beginners seem to ask when using modules is: why won’t my imports keep working? The first import works fine, but later imports in STAX jobs seem to have no effect.