Skip to content

Commit bf3a5e4

Browse files
authored
Merge pull request #3863 from OpenNeuroOrg/snapshot-update-fix
chore(worker): Remove redundant enableremote call with broken argument
2 parents 048a1ad + 56aa16e commit bf3a5e4

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

services/datalad/datalad_service/handlers/snapshots.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
)
1414
from datalad_service.tasks.publish import (
1515
export_dataset,
16-
monitor_remote_configs,
1716
)
1817

1918

@@ -62,7 +61,6 @@ async def on_post(self, req, resp, dataset, snapshot):
6261
resp.status = falcon.HTTP_OK
6362

6463
if not skip_publishing:
65-
monitor_remote_configs(ds_path)
6664
# Publish after response
6765
await export_dataset.kiq(ds_path)
6866
except SnapshotExistsException as err:

services/datalad/datalad_service/tasks/publish.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ async def export_backup_and_drop(dataset_path):
101101
dataset_id = os.path.basename(dataset_path)
102102
public_dataset = is_public_dataset(dataset_id)
103103
repo = pygit2.Repository(dataset_path)
104-
update_s3_sibling(dataset_path)
104+
update_s3_sibling(dataset_path, public_dataset)
105105
tags = sorted(git_tag(repo), key=lambda tag: tag.name)
106106
if tags:
107107
await s3_backup_push(dataset_path)
@@ -283,13 +283,6 @@ async def delete_siblings(dataset_id):
283283
await delete_github_sibling(dataset_id)
284284

285285

286-
def monitor_remote_configs(dataset_path):
287-
"""Check remote configs and correct invalidities."""
288-
s3_ok = datalad_service.common.s3.validate_s3_config(dataset_path)
289-
if not s3_ok:
290-
update_s3_sibling(dataset_path)
291-
292-
293286
@broker.task
294287
async def annex_drop(dataset_path, branches):
295288
"""Drop local contents from the annex."""

0 commit comments

Comments
 (0)