Describe the bug
When creating a formula field in a table that uses a timestamp, it seems the formula value is only every computed once during the life of the record. For certain time-based formulas, it makes sense for the formula to be re-computed at a set frequency (e.g., every 5-15 minutes).
To Reproduce
Steps to reproduce the behavior:
- Create a table in a new base
- Create a timestamp field named
Published At
- Create a sample record with a valid
Published At value
- Create a new formula field named
Age where the formula as:
TONOW({Published At}, "day") & " days ago"
- See that the
Age field is accurate for now.
- Wait 2 days.
- Refresh the view.
- See that the
Age field value was never recomputed -- it still shows a stale computation.
- The only way to force recomputation is to either: (a) adjust the
Published At timestamp manually OR (b) adjust the Age formula manually.
Expected behavior
When creating a new formula, I would like Teable to offer an option to auto recompute the formula value on a set CRON schedule (e.g., every 5 minutes, every 15 minutes, ...). That would give the table designer maximum flexibility about how often these formulas recomputed. If that is too difficult to do on a field-by-field basis, then at least allow the designer to specify a table-wide recompute CRON schedule that could apply equally to all formulas within a table.
Client (please complete the following information):
- OS: Linux
- Browser: Chrome
Platform (Please tell us which deployment version you are using)
[docker-standalone]
Additional context
Teable is deployed as a Google Cloud Run service with autoscaling enabled.
Describe the bug
When creating a formula field in a table that uses a timestamp, it seems the formula value is only every computed once during the life of the record. For certain time-based formulas, it makes sense for the formula to be re-computed at a set frequency (e.g., every 5-15 minutes).
To Reproduce
Steps to reproduce the behavior:
Published AtPublished AtvalueAgewhere the formula as:Agefield is accurate for now.Agefield value was never recomputed -- it still shows a stale computation.Published Attimestamp manually OR (b) adjust theAgeformula manually.Expected behavior
When creating a new formula, I would like Teable to offer an option to auto recompute the formula value on a set CRON schedule (e.g., every 5 minutes, every 15 minutes, ...). That would give the table designer maximum flexibility about how often these formulas recomputed. If that is too difficult to do on a field-by-field basis, then at least allow the designer to specify a table-wide recompute CRON schedule that could apply equally to all formulas within a table.
Client (please complete the following information):
Platform (Please tell us which deployment version you are using)
[docker-standalone]
Additional context
Teable is deployed as a Google Cloud Run service with autoscaling enabled.