Skip to content

Commit 80bed1f

Browse files
committed
Change miarka_destination to remote_destination
1 parent e59d773 commit 80bed1f

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ statusdb:
9898
sequencers:
9999
NovaSeqXPlus:
100100
sequencing_path: /sequencing/NovaSeqXPlus
101-
miarka_destination: /Illumina/NovaSeqXPlus
101+
remote_destination: /Illumina/NovaSeqXPlus
102102
metadata_for_statusdb:
103103
- RunInfo.xml
104104
- RunParameters.xml

dataflow_transfer/run_classes/generic_runs.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, run_dir, configuration):
3232
self.final_rsync_exitcode_file = os.path.join(
3333
self.run_dir, ".final_rsync_exitcode"
3434
)
35-
self.miarka_destination = self.sequencer_config.get("miarka_destination")
35+
self.remote_destination = self.sequencer_config.get("remote_destination")
3636
self.db = StatusdbSession(self.configuration.get("statusdb"))
3737

3838
def confirm_run_type(self):
@@ -85,7 +85,7 @@ def generate_rsync_command(self, remote=False, with_exit_code_file=False):
8585
+ "@"
8686
+ self.transfer_details.get("host")
8787
+ ":"
88-
+ self.miarka_destination
88+
+ self.remote_destination
8989
)
9090
log_file_option = "--log-file=" + os.path.join(
9191
self.run_dir, "rsync_remote_log.txt"
@@ -121,23 +121,23 @@ def start_transfer(self, final=False):
121121
transfer_command = self.generate_rsync_command(
122122
remote=True, with_exit_code_file=final
123123
)
124-
if fs.rsync_is_running(src=self.run_dir, dst=self.miarka_destination):
124+
if fs.rsync_is_running(src=self.run_dir, dst=self.remote_destination):
125125
logger.info(
126-
f"Rsync is already running for {self.run_dir} to destination {self.miarka_destination}. Skipping background transfer initiation."
126+
f"Rsync is already running for {self.run_dir} to destination {self.remote_destination}. Skipping background transfer initiation."
127127
)
128128
return
129129
try:
130130
fs.submit_background_process(transfer_command)
131131
logger.info(
132-
f"{self.run_id}: Started rsync to {self.miarka_destination}"
132+
f"{self.run_id}: Started rsync to {self.remote_destination}"
133133
+ f" with the following command: '{transfer_command}'"
134134
)
135135
except Exception as e:
136136
logger.error(f"Failed to start rsync for {self.run_id}: {e}")
137137
raise e
138138
rsync_info = {
139139
"command": transfer_command,
140-
"destination_path": self.miarka_destination,
140+
"destination_path": self.remote_destination,
141141
}
142142
if final:
143143
self.update_statusdb(

dataflow_transfer/tests/test_run_classes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def novaseqxplus_testobj(tmp_path):
2121
},
2222
"sequencers": {
2323
"NovaSeqXPlus": {
24-
"miarka_destination": "/data/NovaSeqXPlus",
24+
"remote_destination": "/data/NovaSeqXPlus",
2525
"metadata_for_statusdb": ["RunInfo.xml", "RunParameters.xml"],
2626
"ignore_folders": ["nosync"],
2727
"remote_rsync_options": ["--chmod=Dg+s,g+rw"],
@@ -53,7 +53,7 @@ def nextseq_testobj(tmp_path):
5353
},
5454
"sequencers": {
5555
"NextSeq": {
56-
"miarka_destination": "/data/NextSeq",
56+
"remote_destination": "/data/NextSeq",
5757
"metadata_for_statusdb": ["RunInfo.xml", "RunParameters.xml"],
5858
"ignore_folders": ["nosync"],
5959
"remote_rsync_options": ["--chmod=Dg+s,g+rw"],
@@ -85,7 +85,7 @@ def miseqseq_testobj(tmp_path):
8585
},
8686
"sequencers": {
8787
"MiSeq": {
88-
"miarka_destination": "/data/MiSeq",
88+
"remote_destination": "/data/MiSeq",
8989
"metadata_for_statusdb": ["RunInfo.xml", "RunParameters.xml"],
9090
"ignore_folders": ["nosync"],
9191
"remote_rsync_options": ["--chmod=Dg+s,g+rw"],
@@ -117,7 +117,7 @@ def miseqseqi100_testobj(tmp_path):
117117
},
118118
"sequencers": {
119119
"MiSeqi100": {
120-
"miarka_destination": "/data/MiSeqi100",
120+
"remote_destination": "/data/MiSeqi100",
121121
"metadata_for_statusdb": ["RunInfo.xml", "RunParameters.xml"],
122122
"ignore_folders": ["nosync"],
123123
"remote_rsync_options": ["--chmod=Dg+s,g+rw"],

0 commit comments

Comments
 (0)