Asset Tracking


For Use Case 2 (Dress Me Up) we need to track when asset creation (scan, avatar, image composition) completes or fails with an error, and update the status of the corresponding records in Firestore.


The function is triggered by a Cloud Storage notification when user assets are written to the asset store.


A Google Cloud Storage Notification


  1. Inspect the asset storage path to determine the asset type and id
  2. If the file creation signals pipeline completion or failure, update the status of the corresponding record in Firestore.


This function is invoked asynchronously so produces no output.