7.7. File States¶
As a file is processed by a workflow, each task reports whether the state of the file following the task. The containing job reports the state of the file after all workflow steps have completed.
A file can have any of the following states
7.7.1. Processed¶
The file was successfully processed by the workflow step without issues
7.7.2. Skipped¶
The files was not processed because it was already in the expected state, e.g. a delete was skipped because the file wasn't found, a migration was skipped because the file was already offline.
Because it is in the expected state, skipped files can be processed by subsequent tasks in the workflow.
7.7.3. Failed¶
An error occurred meaning the file couldn't be processed. Because of this error, the file will not be processed by later tasks in the workflow.
The overall job will be marked as failed if it contains any failed files. Workflows which use the snapdiff
discovery will be 'rolled back' in this case.
Failed files typically indicate an issue that needs to be manually resolved, such as network issues.
7.7.4. Aborted¶
An error occurred meaning the file couldn't be processed. Because the file was aborted, it will not be processed by later tasks in the workflow.
The overall job is not marked as failed if it contains aborted files. Workflows which use the snapdiff
discovery will 'rotate' in this case.
The intended use case for this state is in scheduled (recurring) jobs, where the any aborted files are expected to be successfully processed in a later run.
For example, if a file changes while it is being sent, the send will be aborted to prevent data corruption. But because the file was modified, it will be identified as modified in the next snapdiff scan and processed again; effectively retried.