7.1. Default Workflows¶
This section documents all the workflows which come installed in Ngenea Hub by default. See Custom Workflows for guidance on how to create your own workflows.
7.1.1. migrate
¶
Migrate one or more files from a site.
discovery: recursive
steps:
fields:
lock_level
(choice): Filesystem locking level for ngenea operations. One of:partial
,implicit
,none
. Default=partial
7.1.2. premigrate
¶
Premigrate one or more files from a site.
discovery: recursive
steps:
-
premigrate
: True
fields:
lock_level
(choice): Filesystem locking level for ngenea operations. One of:partial
,implicit
,none
. Default=implicit
7.1.3. recall
¶
Recall one or more files on to a site.
discovery: recursive
steps:
fields:
lock_level
(choice): Filesystem locking level for ngenea operations. One of:partial
,implicit
,none
. Default=implicit
7.1.4. send
¶
Send files from one site to another via cloud storage.
discovery: recursive
steps:
-
premigrate
: True
fields:
destinationsite
(string): site to send files todestinationqueue
(string): queue on the destination site to run the task onhydrate
(bool): hydrate files on the destination site
7.1.5. site_sync
¶
Sync a fileset from one site to another via cloud storage.
The snapdiff
discovery looks for changes within the fileset on the source site since the last time the workflow was invoked. These changes are then synced to the destination site.
The workflow should be invoked with a single path which is the link point of the independent fileset to be synced.
discovery: snapdiff
fields:
destinationsite
(string): site to sync changes todestinationqueue
(string): queue on the destination site to run the task onsync_preference
(string): determines how conflicts should be resolved on the remote site. One of: newest, local, ignore
7.1.5.1. created¶
Files with state created
are sent to the destination site, subject to sync_preference
steps:
-
premigrate
: Trueoverwrite
: Trueabort_missing
: True
-
overwrite
: True
7.1.5.2. updated¶
Files with state updated
are sent to the destination site, subject to sync_preference
steps:
-
premigrate
: Trueoverwrite
: Trueabort_missing
: True
-
overwrite
: True
7.1.5.3. moved¶
Files with state moved
are moved 'in-place' on the destination site
steps:
7.1.5.4. deleted¶
Files with state deleted
are removed on the destination site
steps:
7.1.5.5. import_to_site_hydrated¶
This workflow is designed to import fully hydrated remote objects from external ngenea targets to the local filesystem.
discovery: null
steps:
dynamo.tasks.import_files_from_external_target
hydrate
: True
fields:
endpoint
(string): Name of the ngenea target configurationlocation
(string): An absolute path for where to place the file/folder in the local filesystem, this can be a different path than the remote location. Defaults toNone
lock_level
(string): Filesystem locking level for ngenea operations. One of:partial
,implicit
,none
. Default=implicit
7.1.5.6. import_to_site_dehydrated¶
This workflow is designed to import stubbed remote objects from external ngenea targets to the local filesystem.
discovery: null
steps:
dynamo.tasks.import_files_from_external_target
hydrate
: False
fields:
endpoint
(string): Name of the ngenea target configurationlocation
(string): An absolute path for where to place the file/folder in the local filesystem, this can be a different path than the remote location. Defaults toNone
lock_level
(string): Filesystem locking level for ngenea operations. One of:partial
,implicit
,none
. Default=implicit