browsertrix/backend/btrixcloud
Tessa Walsh 589819682e
Optionally delay replica deletion (#2252)
Fixes #2170

The number of days to delay file replication deletion by is configurable
in the Helm chart with `replica_deletion_delay_days` (set by default to
7 days in `values.yaml` to encourage good practice, though we could
change this).

When `replica_deletion_delay_days` is set to an int above 0, when a
delete replica job would otherwise be started as a Kubernetes Job,
a CronJob is created instead with a cron schedule set to run yearly,
starting x days from the current moment. This cronjob is then deleted by
the operator after the job successfully completes. If a failed
background job is retried, it is re-run immediately as a Job rather
than being scheduled out into the future again.

---------
Co-authored-by: Ilya Kreymer <ikreymer@users.noreply.github.com>
2024-12-19 18:50:28 -08:00
..
migrations fix resetting of invalid logins: (#2002) 2024-08-07 12:36:06 -07:00
operator Optionally delay replica deletion (#2252) 2024-12-19 18:50:28 -08:00
__init__.py
auth.py Include user and user org info in login response (#2014) 2024-08-12 18:51:42 -07:00
background_jobs.py Optionally delay replica deletion (#2252) 2024-12-19 18:50:28 -08:00
basecrawls.py switch to simpler streaming download + multiwacz metadata improvements: (#1982) 2024-10-03 16:13:31 -07:00
colls.py switch to simpler streaming download + multiwacz metadata improvements: (#1982) 2024-10-03 16:13:31 -07:00
crawlconfigs.py Fix nightly tests: modify kubectl exec syntax for creating new minio bucket (#2097) 2024-10-21 17:41:19 -07:00
crawlmanager.py Optionally delay replica deletion (#2252) 2024-12-19 18:50:28 -08:00
crawls.py switch to simpler streaming download + multiwacz metadata improvements: (#1982) 2024-10-03 16:13:31 -07:00
db.py Serialize datetimes with Z suffix (#2058) 2024-09-12 16:16:13 -07:00
emailsender.py Send subscription cancelation email (#2234) 2024-12-12 11:52:38 -08:00
invites.py fix: firstOrgAdmin being set to true even if invite was not for an admin (#2110) 2024-10-08 16:42:30 -07:00
k8sapi.py Configure browsertrix proxies (#1847) 2024-10-02 18:35:45 -07:00
main_bg.py Move org storage recalculation into background job (#2138) 2024-11-19 17:32:57 -05:00
main_op.py Consolidate ops class initialization (#2117) 2024-10-30 15:33:22 -04:00
main.py Allow configuring available languages from helm chart (#2230) 2024-12-13 22:31:26 -05:00
models.py Optionally delay replica deletion (#2252) 2024-12-19 18:50:28 -08:00
ops.py Consolidate ops class initialization (#2117) 2024-10-30 15:33:22 -04:00
orgs.py Send subscription cancelation email (#2234) 2024-12-12 11:52:38 -08:00
pages.py Serialize datetimes with Z suffix (#2058) 2024-09-12 16:16:13 -07:00
pagination.py
profiles.py Configure browsertrix proxies (#1847) 2024-10-02 18:35:45 -07:00
storages.py Support Presigning for use with custom domain (#2249) 2024-12-19 18:41:47 -08:00
subs.py Send subscription cancelation email (#2234) 2024-12-12 11:52:38 -08:00
uploads.py
users.py Add superuser endpoint to get user emails with org info (#2211) 2024-12-09 16:38:01 -08:00
utils.py Serialize datetimes with Z suffix (#2058) 2024-09-12 16:16:13 -07:00
version.py version: bump to 1.13.1 2024-12-19 12:01:47 -08:00
webhooks.py Add webhooks for qaAnalysisStarted, qaAnalysisFinished, and crawlReviewed (#1974) 2024-07-25 16:53:49 -07:00