Asset Tracking

Context

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.

Invocation

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

Input

A Google Cloud Storage Notification

Actions

  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.

Output

This function is invoked asynchronously so produces no output.