On server 11.3 Scratch Workspace is not giving back the job dir from arcgisjobs dir. Instead it is giving and writing to AppData under the user name. This dir is not part of the cleanup schedule and is growing over time.
arcpy.AddMessage("Scratch Workspace " + arcpy.env.scratchWorkspace)
Scratch Workspace C:\Users\serveruser~1\AppData\Local\Temp\aim\speedtest_gpserver\j9b2d66b7a00d4a8696d2fe7973da3ba4\scratch
The post here shows it should be my arcgisjobs dir right? https://community.esri.com/t5/python-questions/geoprocessing-service-to-return-a-file/td-p/522062 I remember seeing this happen in the past I think.
I am even seeing it create the jobs dir with a scratch folder in the arcgisjobs folder and even a scratch GDB but it does not use it. I can find no way in script to find this jobs dir either?
Why is it not using arcgisjobs as configured both in the GP tool and in the server settings? Is this a bug of some sort? I cannot figure out how I can even get the job dir in script if none of these work. Scratch GDB is doing the same thing. Scratch Folder same deal it gives me the AppData dir and not the jobs dir.
thanks