browsertrix/backend
Tessa Walsh 147bfd9d44
Add event webhook notifications system to backend (#1061)
Initial set of backend API for event webhook notifications for the following events:
* Crawl started (including boolean indicating if crawl was scheduled)
* Crawl finished
* Upload finished
* Archived item added to collection
* Archived item removed from collection

Configuration of URLs is done via /api/orgs/<oid>/event-webhook-urls. If a URL is configured for a given event, a webhook notification is added to the database and then attempted to be sent (up to a total of 5 tries per overall attempt, with an increasing backoff between, implemented via use of the backoff library, which supports async).

webhook status available via /api/orgs/<oid>/webhooks

(Additional testing + potential fastapi integration left in separate follow-ups
Fixes #1041
2023-08-31 19:52:37 -07:00
..
btrixcloud Add event webhook notifications system to backend (#1061) 2023-08-31 19:52:37 -07:00
test Add event webhook notifications system to backend (#1061) 2023-08-31 19:52:37 -07:00
test_nightly Add max crawl size option to backend and frontend (#1045) 2023-08-26 22:00:37 -07:00
.pylintrc quickfix: pydantic / lint fix (#452) 2023-01-10 18:54:11 -08:00
Dockerfile
requirements.txt Add event webhook notifications system to backend (#1061) 2023-08-31 19:52:37 -07:00