How can execution of a copy plan be terminated if an error is encountered in the pre-copy script?
It seems the current behavior is to error just the pre-copy script phase which will send an alert, but I cannot find any documentation on a method to terminate the plan.
The UI (web based GUI) has pre-copy, post-copy, and post-mount script options, where you select a script to initiate. If a script that is initiated by this method fails, AppSync will continue providing an array copy, and will not notify you of the error. Please see the User and Administration Guide for more details. These can also be managed by REST and CLI scripting.
AppSync also supports "callout" scripts for the file system service plans. These are designed to support freezing/thawing 3rd party databases that AppSync does not support with native APIs. More details are depicted in the User and Administration guide.
If a callout script fails, so will the AppSync job, because if a database is not able to be frozen or thawed, it is not likely to be valid.
Your script must have an exit code. An exit code of zero will allow AppSync to continue. Any exit code other than zero will cause the AppSync job to fail.
schifa
82 Posts
1523
0
Posted April 15th, 2016 09:00
The UI (web based GUI) has pre-copy, post-copy, and post-mount script options, where you select a script to initiate. If a script that is initiated by this method fails, AppSync will continue providing an array copy, and will not notify you of the error. Please see the User and Administration Guide for more details. These can also be managed by REST and CLI scripting.
AppSync also supports "callout" scripts for the file system service plans. These are designed to support freezing/thawing 3rd party databases that AppSync does not support with native APIs. More details are depicted in the User and Administration guide.
If a callout script fails, so will the AppSync job, because if a database is not able to be frozen or thawed, it is not likely to be valid.