Group Workflows
ArchiveGroupWorkflow
Planned — not yet live.
Scans for groups that have been inactive beyond the configured cooldown period and archives them automatically.
Trigger: Scheduled cron (daily); reads
group.coolDownPeriodForArchivingGroup from settings/global
Activities:
findInactiveGroups— query groups where no rides have been created within the cooldown period andarchivedAtisnullarchiveGroup— setarchivedAtto the current timestamp on each inactive groupnotifyGroupMembers— send push notifications to all members of each archived group
Retry policy:
maximumAttempts: 3, initialInterval: 30s, backoffCoefficient: 2
Timeout: workflowRunTimeout: 30m, activityStartToCloseTimeout: 60s
DeleteGroupWorkflow
Planned — not yet live.
Cleans up all member records and sends notifications after an owner initiates
group deletion. Triggered when DELETE /groups/{groupId} sets deletedAt on
the group document.
Trigger: deletedAt field set on groups/{groupId} (via
DELETE /groups/{groupId} endpoint)
Activities:
removeAllMembers— delete all documents ingroups/{groupId}/members/and the correspondingusers/{userId}/groups/{groupId}records for each membercancelPendingRequests— delete all documents ingroups/{groupId}/requests/notifyRemovedMembers— send push notifications to all removed members informing them the group was deleteddetachGroupRides— update all rides withgroupId = {groupId}to setgroupId: nullandtype: "private", making them standalone private ridesdeleteGroupDocument— hard-delete thegroups/{groupId}document and all remaining subcollections
Retry policy:
maximumAttempts: 3, initialInterval: 30s, backoffCoefficient: 2
Timeout: workflowRunTimeout: 15m, activityStartToCloseTimeout: 60s