Alex Hall
a701b4bf13
(core) Remove expired attachments every hour and on shutdown
...
Summary:
Call ActiveDoc.removeUnusedAttachments every hour using setInterval, and in ActiveDoc.shutdown (which also clears said interval).
Unrelated: small fix to my webhooks code which was creating a redis client on shutdown just to quit it.
Test Plan:
Tweaked DocApi test to remove expired attachments by force-reloading the doc, so that it removes them during shutdown. Extracted a new testing endpoint /verifyFiles to support this test (previously running that code only happened with `/removeUnused?verifyfiles=1`).
Tested the setInterval part manually.
Reviewers: paulfitz, dsagal
Reviewed By: paulfitz
Subscribers: dsagal
Differential Revision: https://phab.getgrist.com/D3387
2022-04-22 20:43:59 +02:00
..
2021-03-19 18:20:33 -04:00
2021-09-29 11:27:02 -04:00
2022-02-19 09:46:49 +00:00
2022-02-19 09:46:49 +00:00
2022-04-22 20:43:59 +02:00
2022-03-10 16:24:49 -08:00
2022-03-05 13:30:45 -05:00
2022-04-11 11:42:02 -07:00
2022-04-11 11:42:02 -07:00
2020-07-21 20:39:10 -04:00
2022-04-14 12:49:35 -04:00
2022-04-14 12:49:35 -04:00
2020-07-21 20:39:10 -04:00
2021-10-01 11:24:22 -04:00
2022-04-22 20:43:59 +02:00
2021-10-25 10:25:18 -04:00
2022-03-25 13:41:33 +02:00
2020-07-21 20:39:10 -04:00
2022-02-19 09:46:49 +00:00
2022-02-22 12:50:43 -05:00
2022-04-05 18:11:13 +02:00
2022-04-22 20:43:59 +02:00
2021-04-29 08:56:54 -04:00
2020-07-21 20:39:10 -04:00
2022-02-19 09:46:49 +00:00
2022-03-24 13:42:36 +02:00
2022-03-22 00:22:45 +02:00
2022-02-08 17:41:04 +01:00
2022-02-19 09:46:49 +00:00
2021-12-07 17:09:58 +02:00
2021-12-07 17:09:58 +02:00
2021-11-30 17:26:32 +01:00
2022-04-08 16:40:34 -07:00
2022-04-22 20:43:59 +02:00
2022-04-01 15:24:19 -07:00
2020-07-21 20:39:10 -04:00
2021-04-29 08:56:54 -04:00
2022-04-14 12:49:35 -04:00
2022-04-04 18:36:09 -04:00
2021-11-30 17:26:32 +01:00
2022-04-08 16:40:34 -07:00
2021-10-01 10:47:12 +02:00
2022-03-14 21:49:32 +02:00
2022-04-04 18:36:09 -04:00
2021-10-01 11:24:22 -04:00
2020-07-21 20:39:10 -04:00
2020-09-18 16:31:29 -04:00
2022-02-19 09:46:49 +00:00
2022-04-22 20:43:59 +02:00
2020-07-21 20:39:10 -04:00
2020-10-30 13:52:46 -04:00
2022-03-25 13:41:33 +02:00
2021-04-29 08:56:54 -04:00
2021-01-12 14:08:49 -05:00
2020-07-23 11:29:05 -04:00
2022-04-19 21:21:52 +02:00
2021-09-29 12:08:23 -04:00
2022-02-04 20:28:13 +02:00
2020-07-21 20:39:10 -04:00
2022-03-08 17:20:01 -05:00
2022-03-08 17:20:01 -05:00
2020-10-28 13:59:13 -04:00
2021-10-25 10:25:18 -04:00
2020-07-21 20:39:10 -04:00
2022-04-11 11:42:02 -07:00
2022-04-11 17:54:40 -04:00
2021-12-07 17:09:58 +02:00
2021-07-15 15:18:32 -07:00
2022-04-01 15:24:19 -07:00
2020-07-22 14:45:42 -04:00
2020-07-21 20:39:10 -04:00
2022-02-19 09:46:49 +00:00
2021-08-20 11:28:33 -04:00
2022-04-11 11:42:02 -07:00
2021-05-24 12:56:18 -04:00
2021-08-09 18:37:14 +02:00
2022-02-20 02:39:30 -08:00
2021-11-10 10:46:12 -05:00
2020-07-21 20:39:10 -04:00
2022-03-12 14:34:46 -08:00
2021-11-03 15:31:39 +01:00
2021-08-26 13:36:49 -07:00
2021-11-05 10:51:18 -04:00
2022-03-05 13:30:45 -05:00
2022-04-22 18:39:54 +02:00
2020-07-21 20:39:10 -04:00
2020-07-21 20:39:10 -04:00
2022-04-22 20:43:59 +02:00
2021-10-01 10:18:56 -04:00
2020-07-21 20:39:10 -04:00
2022-03-08 17:20:01 -05:00
2022-04-01 15:24:19 -07:00
2021-11-04 17:23:43 -04:00
2020-07-21 20:39:10 -04:00
2022-04-22 20:43:59 +02:00
2020-07-21 20:39:10 -04:00
2022-04-08 16:40:34 -07:00
2022-01-13 11:10:17 +01:00
2020-07-21 20:39:10 -04:00