tornado: Move the /notify-tornado endpoint, and document it better.

This commit is contained in:
Alex Vandiver
2024-02-08 19:10:25 +00:00
committed by Tim Abbott
parent 3f8a0c968a
commit 84fa9be73a
5 changed files with 16 additions and 10 deletions

View File

@@ -43,6 +43,8 @@ def in_tornado_thread(f: Callable[P, T]) -> Callable[P, T]:
def notify(
request: HttpRequest, data: Mapping[str, Any] = REQ(json_validator=check_dict([]))
) -> HttpResponse:
# Only the puppeteer full-stack tests use this endpoint; it
# injects an event, as if read from RabbitMQ.
in_tornado_thread(process_notification)(data)
return json_success(request)