Skip to content

Commit

Permalink
feat: Save number of metadata generation attempts (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
karatugo authored Sep 26, 2024
1 parent f29e168 commit 3a93f45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sumstats_service/resources/mongo_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ def insert_or_update_metadata_yaml_request(
"$setOnInsert": {
"request_created": datetime.now(),
"globus_endpoint_id": globus_endpoint_id,
"attempts": 0,
},
"$inc": {"attempts": 1},
},
upsert=True,
)
Expand Down

0 comments on commit 3a93f45

Please sign in to comment.