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
..
2022-03-11 12:34:00 +02:00
2022-03-30 09:54:35 -04:00
2022-02-03 16:22:51 -05:00
2021-06-25 12:00:58 +02:00
2021-06-22 17:13:17 +02:00
2021-06-22 17:13:17 +02:00
2022-02-03 16:22:51 -05:00
2021-11-05 11:18:00 -04:00
2021-09-24 15:07:09 +02:00
2022-02-12 09:44:34 +02:00
2021-06-22 17:13:17 +02:00
2021-06-25 22:53:07 -04:00
2021-12-06 16:09:41 +01:00
2022-03-23 13:15:02 +01:00
2022-03-14 19:42:51 +02:00
2022-02-19 09:46:49 +00:00
2021-06-22 17:13:17 +02:00
2021-11-09 18:08:29 +02:00
2021-08-24 14:47:50 +02:00
2022-03-08 12:14:39 +02:00
2020-07-29 08:57:25 -04:00
2022-03-14 19:42:51 +02:00
2022-02-22 00:59:56 +02:00
2020-07-29 08:57:25 -04:00
2022-04-22 20:43:59 +02:00
2022-02-04 20:28:13 +02:00
2022-01-07 14:26:00 -05:00
2022-03-08 12:14:39 +02:00
2022-02-13 00:45:24 -05:00
2021-06-22 17:13:17 +02:00
2021-08-12 11:51:21 -07:00
2021-06-22 17:13:17 +02:00
2021-07-12 06:45:47 -04:00
2022-04-06 13:28:47 +02:00
2021-11-03 15:31:39 +01:00
2022-04-06 15:37:45 +02:00
2021-06-22 17:13:17 +02:00
2022-04-05 18:05:00 +02:00
2021-06-22 17:13:17 +02:00
2021-01-04 22:03:01 -05:00
2020-07-29 08:57:25 -04:00
2021-09-24 15:07:09 +02:00
2022-03-01 22:00:45 +02:00
2022-02-22 12:50:43 -05:00
2020-09-10 18:06:06 -04:00
2021-06-18 15:42:20 +02:00
2022-02-22 00:59:56 +02:00
2022-02-15 22:04:32 +02:00
2022-02-15 22:04:32 +02:00
2022-02-01 21:19:30 +02:00
2022-02-19 09:46:49 +00:00
2021-09-27 17:12:39 +02:00
2021-08-20 23:04:48 +02:00
2021-06-25 12:00:58 +02:00
2021-09-24 15:07:09 +02:00
2021-06-22 17:13:17 +02:00
2022-02-01 21:19:30 +02:00
2020-07-29 08:57:25 -04:00
2022-02-22 00:59:56 +02:00
2022-02-22 00:27:51 +02:00
2021-06-22 17:13:17 +02:00
2022-02-04 20:28:13 +02:00
2021-06-22 17:13:17 +02:00
2022-04-05 18:05:00 +02:00
2022-02-04 20:28:13 +02:00
2021-06-25 12:00:58 +02:00
2022-02-19 09:46:49 +00:00
2022-02-22 12:50:43 -05:00
2021-06-30 16:56:09 +02:00
2022-03-23 13:15:02 +01:00
2020-11-04 16:45:47 -05:00
2021-11-03 15:31:39 +01:00
2022-04-06 15:37:45 +02:00
2022-02-22 00:59:56 +02:00
2021-12-15 09:51:18 -05:00
2022-01-18 14:31:31 +01:00
2022-02-01 21:19:30 +02:00
2021-06-22 17:13:17 +02:00
2020-12-15 16:39:56 -05:00
2021-06-22 17:13:17 +02:00
2020-07-29 08:57:25 -04:00
2022-02-22 12:50:43 -05:00
2020-07-29 08:57:25 -04:00
2021-09-30 14:16:24 +02:00
2021-06-22 17:13:17 +02:00
2021-06-25 12:00:58 +02:00
2022-02-22 12:50:43 -05:00
2022-02-22 00:59:56 +02:00
2020-07-29 08:57:25 -04:00
2022-02-22 00:59:56 +02:00
2021-06-25 22:53:07 -04:00
2021-06-25 12:00:58 +02:00
2020-07-29 08:57:25 -04:00
2021-06-22 17:13:17 +02:00
2020-07-29 08:57:25 -04:00
2021-06-25 12:00:58 +02:00
2022-02-22 12:50:43 -05:00
2022-04-07 20:35:03 +02:00
2021-09-24 15:07:09 +02:00
2022-02-04 20:28:13 +02:00
2021-06-30 21:46:18 +02:00