Skip to content

Commit

Permalink
Merge pull request #158 from I-GUIDE/156-turn-off-s3-auto-refresh
Browse files Browse the repository at this point in the history
Skip scheduled refresh of s3 dataset metadata
  • Loading branch information
pkdash authored May 31, 2024
2 parents 52d944a + 557cb1b commit 9cb8a86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions triggers/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ async def do_daily():
await init_beanie(database=db, document_models=[Submission, DatasetMetadataDOC])

async for submission in Submission.find(Submission.repository != None):
if submission.repository == RepositoryType.S3:
# skip S3 submissions as they are not yet supported for scheduled refresh
continue
try:
dataset = await DatasetMetadataDOC.get(submission.identifier)
if dataset is None:
Expand Down

0 comments on commit 9cb8a86

Please sign in to comment.