Skip to content

Commit d57c311

Browse files
committed
Address comments
1 parent f757094 commit d57c311

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

zstash/create.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ def create():
9999
hpss,
100100
get_db_filename(cache),
101101
cache,
102+
transfer_manager,
102103
keep=args.keep,
103104
is_index=True,
104-
transfer_manager=transfer_manager,
105105
)
106106

107107
logger.debug(f"{ts_utc()}: calling globus_finalize()")
@@ -292,9 +292,9 @@ def create_database(
292292
args.keep,
293293
args.follow_symlinks,
294294
dev_options,
295+
transfer_manager,
295296
skip_tars_table=args.no_tars_md5,
296297
non_blocking=args.non_blocking,
297-
transfer_manager=transfer_manager,
298298
)
299299

300300
# Close database

zstash/globus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def globus_transfer( # noqa: C901
207207
# Note: any status we manually set
208208
# (I.e., "UNKNOWN", "SUBMITTED", "EXHAUSTED_TIMEOUT_RETRIES") is NOT possible here,
209209
# because we're using `task["status"]` from the globus_sdk TransferClient.
210-
logger.error(
210+
logger.warning(
211211
f"{ts_utc()}: Previous task_id {mrb.task_id} status = {mrb.task_status}."
212212
)
213213

zstash/hpss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ def hpss_put(
150150
hpss: str,
151151
file_path: str,
152152
cache: str,
153+
transfer_manager: TransferManager,
153154
keep: bool = True,
154155
non_blocking: bool = False,
155156
is_index=False,
156-
transfer_manager: Optional[TransferManager] = None,
157157
):
158158
"""
159159
Put a file to the HPSS archive.

zstash/hpss_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def process_tar(
108108
cache: str,
109109
keep: bool,
110110
non_blocking: bool,
111-
transfer_manager: Optional[TransferManager],
111+
transfer_manager: TransferManager,
112112
skip_tars_table: bool,
113113
cur: sqlite3.Cursor,
114114
con: sqlite3.Connection,
@@ -140,10 +140,10 @@ def process_tar(
140140
hpss,
141141
os.path.join(cache, self.tfname),
142142
cache,
143+
transfer_manager,
143144
keep,
144145
non_blocking,
145146
is_index=False,
146-
transfer_manager=transfer_manager,
147147
)
148148
logger.info(
149149
f"{ts_utc()}: SURFACE (process_tar): Called hpss_put to dispatch archive file {self.tfname}"
@@ -344,9 +344,9 @@ def construct_tars(
344344
keep: bool,
345345
follow_symlinks: bool,
346346
dev_options: DevOptions,
347+
transfer_manager: TransferManager,
347348
skip_tars_table: bool = False,
348349
non_blocking: bool = False,
349-
transfer_manager: Optional[TransferManager] = None,
350350
) -> List[str]:
351351

352352
failures: List[str] = []

zstash/update.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ def update():
4040
hpss,
4141
get_db_filename(cache),
4242
cache,
43+
transfer_manager,
4344
keep=args.keep,
4445
is_index=True,
45-
transfer_manager=transfer_manager,
4646
)
4747

4848
globus_finalize(transfer_manager, args.keep)
@@ -290,8 +290,8 @@ def update_database( # noqa: C901
290290
keep,
291291
args.follow_symlinks,
292292
dev_options,
293+
transfer_manager,
293294
non_blocking=args.non_blocking,
294-
transfer_manager=transfer_manager,
295295
)
296296

297297
# Close database

0 commit comments

Comments
 (0)