server.web.routes

Routes used by task instances on worker nodes.

Subpackages

Attributes

SessionLocal

logger

Functions

is_alive(→ Any)

Action that sends a response to the requester indicating that responder is listening.

_get_time(→ str)

get_pst_now(→ Any)

Get the time from the database.

health(→ Any)

Test connectivity to the database.

test_route(→ None)

Test route to force a 500 error.

Package Contents

server.web.routes.SessionLocal[source]
server.web.routes.logger[source]
server.web.routes.is_alive() Any[source]

Action that sends a response to the requester indicating that responder is listening.

server.web.routes._get_time() str[source]
server.web.routes.get_pst_now() Any[source]

Get the time from the database.

server.web.routes.health() Any[source]

Test connectivity to the database.

Return 200 if everything is OK. Defined in each module with a different route, so it can be checked individually.

server.web.routes.test_route() None[source]

Test route to force a 500 error.