AnsweredAssumed Answered

How do I get  current job ID

Question asked by surendrankn on Nov 15, 2017
Latest reply on Nov 17, 2017 by randall_williams-esristaff

How do I get the  ArcGIS server directories(Cache,Jobs,Output,System)  paths using arcpy  including job ID

I want search for a file in the current Job folder.  Is there any environment variables  like  arcpy.env.scrachfolder.

I know the path  but I have to add  [jobid]\scratch  to that. How do I get  current jobid.?