Skip to content

Commit 3ca8638

Browse files
authored
Merge pull request #3657 from OpenNeuroOrg/fsck-j4
fix(worker): Run export/fsck tasks with J4
2 parents 79f1cfe + abed58c commit 3ca8638

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

services/datalad/datalad_service/common/s3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,15 @@ def validate_s3_config(dataset_path):
182182
async def s3_export(dataset_path, target, treeish):
183183
"""Perform an S3 export on a git-annex repo."""
184184
await run_check(
185-
['git-annex', 'export', treeish, '--to', target],
185+
['git-annex', 'export', '-J4', treeish, '--to', target],
186186
dataset_path,
187187
)
188188

189189

190190
async def s3_backup_push(dataset_path):
191191
"""Perform an S3 push to the backup remote on a git-annex repo."""
192192
await run_check(
193-
['git-annex', 'push', '--all', get_s3_backup_remote()],
193+
['git-annex', 'push', '-J4', '--all', get_s3_backup_remote()],
194194
dataset_path,
195195
env=backup_remote_env(),
196196
)

services/datalad/datalad_service/tasks/fsck.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def git_annex_fsck_local(dataset_path):
3737
annex_command = (
3838
'git-annex',
3939
'fsck',
40+
'-J4',
4041
'--json',
4142
'--json-error-messages',
4243
'--incremental-schedule=45d',
@@ -73,6 +74,7 @@ async def git_annex_fsck_remote(dataset_path, branch, remote='s3-PUBLIC'):
7374
annex_command = (
7475
'git-annex',
7576
'fsck',
77+
'-J4',
7678
f'--branch={branch}',
7779
f'--from={remote}',
7880
'--json',

0 commit comments

Comments
 (0)