-
Notifications
You must be signed in to change notification settings - Fork 5
Conversation
leplatrem
commented
Jul 1, 2024
•
edited
Loading
edited
- POC
- Only build for opted in collections
- Align file names with ADR
- Upload to Cloud Storage
f"{base_url}{DESTINATION_FOLDER}/changesets.zip" | ||
) | ||
if existing_bundle_timestamp is None: | ||
print("No previous bundle found") # Should only happen once. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could happen multiple times.Ex: if the bundle cannot be built due it being too large.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changesets.zip
will always be produced (and it's currently ~6MB) so once the job has ran once, the file will be there
attachments_bundle_filename = f"{bid}--{cid}.zip" | ||
|
||
if not should_bundle: | ||
bundles_to_delete.append(attachments_bundle_filename) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, doing all the writes at the end later will prevent some possible contention issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great. Things on my mind now:
- We will need to emit some metrics to look at (have a ticket opened for that to follow up on later). We'll have a dashboard with basic stats on it to know how healthy things are.
- We will probably encounter at least 1 unknown after deploying. But since this will be out before any client code is even being tested, that's fine.