Closed glaforge closed 4 years ago
Commit https://github.com/GoogleCloudPlatform/serverless-photosharing-workshop/commit/c6ee854c2f4482837c862ad3ca38f7b522fbb8f1 fixes this, adding a thumbnail
flag in the Firestore document that is false
when the thumbnail hasn't yet been created by the thumbnail service, or true
if it's been created.
The
collage
service might run at the same time thethumbnail
service is running. So there's a very short period of time wherecollage
could try to fetch the thumbnail picture from Cloud Storage but it's not there yet. With an extraprocessed
boolean value in the Firestore document schema, we could ensure thecollage
service only picks pictures that already have their thumbnails generated.