You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,8 @@ log:
83
83
84
84
run_one_path: /usr/bin/run-one
85
85
86
+
metadata_archive: /path/to/metadata/archive
87
+
86
88
transfer_details:
87
89
user: username
88
90
host: remote.host.com
@@ -102,8 +104,11 @@ sequencers:
102
104
- RunParameters.xml
103
105
ignore_folders:
104
106
- nosync
105
-
rsync_options:
107
+
remote_rsync_options:
106
108
- --chmod=Dg+s,g+rw
109
+
metadata_rsync_options:
110
+
- "--exclude='*'"
111
+
- "--include=InterOp"
107
112
# ... additional sequencer configurations
108
113
```
109
114
@@ -113,7 +118,7 @@ sequencers:
113
118
2.**Validation**: Confirms run ID matches expected format for the sequencer type
114
119
3.**Transfer Phases**:
115
120
-**Sequencing Phase**: Starts continuous background rsync transfer while sequencing is ongoing (when the final sequencing file doesn't exist). Uploads status and metadata files (specified for each sequencer type in the config with `metadata_for_statusdb`) to database.
116
-
-**Final Transfer**: After sequencing completes (final sequencing file appears), initiates final rsync transfer and captures exit code.
121
+
-**Final Transfer**: After sequencing completes (final sequencing file appears), syncs specified metadata file to archive location, initiates final rsync transfer and captures exit codes.
117
122
-**Completion**: Updates database when transfer was successful.
118
123
119
124
### Status Tracking
@@ -145,14 +150,15 @@ Run status is tracked in CouchDB with events including:
145
150
- Final completion is indicated by the presence of a sequencer-specific final file (e.g., `RTAComplete.txt` for Illumina)
146
151
- Remote storage is accessible via rsync over SSH
147
152
- CouchDB is accessible and the database exists
148
-
- Metadata files (e.g., RunInfo.xml) are present in run directories for status database updates
153
+
- Metadata files (e.g., RunInfo.xml) are present in run directories for status database updates and sync to metadata archive location
149
154
150
155
### Status Files
151
156
152
157
The logic of the script relies on the following status files:
153
158
154
159
-`run.final_file` - The final file written by each sequencing machine. Used to indicate when the sequencing has completed.
155
-
-`final_rsync_exitcode` - Used to indicate when the final rsync is done, so that the final rsync can be run in the background. This is especially useful for restarts after long pauses of the cronjob.
160
+
-`.final_rsync_exitcode` - Used to indicate when the final rsync is done, so that the final rsync can be run in the background. This is especially useful for restarts after long pauses of the cronjob.
161
+
-`.metadata_rsync_exitcode` - Used to indicate when rsync of metadata to the metadata archive is done, so that the rsync can be run in the background. This is useful when there are I/O issue with the disks.
0 commit comments