Ended Tenancy No-Release Escalation
Ended Tenancy No-Release Escalation
Introduced in: v0.1.220
This workflow runs on a daily schedule and automatically identifies tenancies that have ended without a deposit release being started or completed. When a breach of the 14-day threshold is detected, org admins are notified via both in-app notifications and escalation email.
How It Works
1. Scheduled Trigger
The workflow runs once per day at 09:00 UTC:
cron: 0 9 * * *
2. Detection Criteria
On each run, the system queries for tenancies that meet all of the following conditions:
| Condition | Value |
|---|---|
tenancy.status | ended |
deposit_release record | Missing or deposit_release.status = 'draft' |
Days since tenancy.endDate | >= 14 |
Tenancies with a deposit_release in any status other than draft (e.g. in_progress, completed, disputed) are excluded — they are already being actively handled.
3. Escalation Actions
For each tenancy that matches the criteria, the workflow performs two actions:
In-App Notification
- An urgent notification is inserted into the
notificationstable - Targeted at all org admin members (
orgMembers) of the organisation that owns the property - The notification prompts them to begin the deposit release process
Escalation Email
- An escalation email is sent to the same org admins
- The email includes a direct call to action to initiate the deposit release for the affected tenancy
Affected Entities
| Entity | Role |
|---|---|
tenancies | Source of ended tenancies to evaluate |
depositReleases | Checked for existence and status |
properties | Used to resolve organisation ownership |
orgMembers | Identifies org admins to notify |
notifications | Receives inserted urgent notifications |
Compliance Context
The Renters' Rights Act places obligations on landlords and agents to process deposit returns promptly after a tenancy ends. This workflow acts as a compliance safety net — surfacing overlooked cases at the 14-day mark so that action can be taken before statutory deadlines are breached.
Org admins receiving these alerts should:
- Review the flagged tenancy in the platform
- Confirm the end-of-tenancy condition of the property
- Initiate a deposit release (or formally open a dispute if deductions apply)
Notification Behaviour
- Notifications are marked as urgent priority
- Only org admins receive the alert — standard org members and tenants are not notified at this stage
- If the same tenancy remains unaddressed, the workflow will continue to evaluate it on subsequent daily runs until a non-draft
deposit_releaserecord exists
Related Features
- Deposit Release Process — How to initiate and complete a deposit release
- In-App Notifications — How notifications are surfaced in the dashboard
- Roles & Permissions — Org admin role and access levels