CoastalResilienceNetwork/GeositeFramework — pull request #200 by kdeloach (2014-02-25 22:32:46+00:00)
Title: Add support for async PrintTask and automatic export retry upon failure

In attempt to improve the stability of the map export:

1. Add support for async PrintTask.

When export is initialized, the ArcGIS "Export Web Map Task" settings are checked to determine if the service accepts async mode. (How to enable: ArcGIS Server Manager > Printing Tools > Parameters > Execution Mode) Enabling async mode will resolve time out errors.

2. Automatically retry export upon failure.

With synchronous execution mode, the export map task seems to fail sporadically (for a number of reasons). Simply running the export again will resolve this issue, so the app will now make up to 5 attempts at requesting the export before giving up.