Preparing the Async Framework for Shutdown

This procedure enables you to shut down the Async Framework gracefully, so that triggers that were started before the shutdown and had a state of In Progress, Lost While In Progress, or Terminated Abnormally will be automatically recovered on restarting Async.

When you perform this procedure, Async will suspend async processing, set the time of the request in a persistent grid property, and then attempt to kill all active triggers. This command does not wait for that to complete. Shutting down the nodes before it completes is not an issue. When Async is restarted, the only check for In Progress triggers is the start time. For the other states, it also checks that the action failed after the shutdown request.

At the command line, type

manageasync --prepareforshutdown [envDataArea]

If you do not specify an environment data area, gen is used.

Note: 

The command prepareasyncforshutdown envDataArea is a shortcut command that does the same as manageasync with the --prepareforshutdown option.