Skip to main content
added 79 characters in body
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

I have a Python script that runs ArcPy and a model that is imported with a Toolbox.

When directly running the model on ArcMap, it takes 4 plus minutes. It takes about the same time if running in the Windows Command Prompt window. E.g.

Python.exe "{SCRIPT_PATH}"

However, if I run the script in a Windows Scheduled Task, it takes 8 minutes to complete.

One of the processes in the model that makes a big difference is "Tabulate Area". It takes 14 seconds in ArcMap while 44 seconds when run as Scheduled Task!

Running in command prompt and running the scheduled task are done on the same machine.

My environment: ArcMap 10.1, Windows Server 2008 R2 Enterprise, Python 2.7.2.

Anyone else has had the same issue and can tell whyWhy is there this performance difference?

I have a Python script that runs ArcPy and a model that is imported with a Toolbox.

When directly running the model on ArcMap, it takes 4 plus minutes. It takes about the same time if running in the Windows Command Prompt window. E.g.

Python.exe "{SCRIPT_PATH}"

However, if I run the script in a Windows Scheduled Task, it takes 8 minutes to complete.

One of the processes in the model that makes a big difference is "Tabulate Area". It takes 14 seconds in ArcMap while 44 seconds when run as Scheduled Task!

My environment: ArcMap 10.1, Windows Server 2008 R2 Enterprise, Python 2.7.2.

Anyone else has had the same issue and can tell why?

I have a Python script that runs ArcPy and a model that is imported with a Toolbox.

When directly running the model on ArcMap, it takes 4 plus minutes. It takes about the same time if running in the Windows Command Prompt window. E.g.

Python.exe "{SCRIPT_PATH}"

However, if I run the script in a Windows Scheduled Task, it takes 8 minutes to complete.

One of the processes in the model that makes a big difference is "Tabulate Area". It takes 14 seconds in ArcMap while 44 seconds when run as Scheduled Task!

Running in command prompt and running the scheduled task are done on the same machine.

My environment: ArcMap 10.1, Windows Server 2008 R2 Enterprise, Python 2.7.2.

Why is there this performance difference?

edited title
Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

ArcPy script runs longer processing time in a scheduled task than in model bulderModelBuilder?

Tweeted twitter.com/StackGIS/status/925703080846528512
edited tags
Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345
Source Link
alextc
  • 2k
  • 3
  • 23
  • 44
Loading