server.workflow_reaper.notifiers

Places to notify upon certain events (ex. slack to notify of unhealthy workflow).

Attributes

logger

Classes

SlackNotifier

Send notifications via slack.

Module Contents

server.workflow_reaper.notifiers.logger[source]
class server.workflow_reaper.notifiers.SlackNotifier(api_url: str = '', token: str = '', channel_default: str = '')[source]

Bases: object

Send notifications via slack.

api_url = ''[source]
_token = ''[source]
channel_default = ''[source]
send(msg: str, channel: str | None = None) None[source]

Send message to Slack using requests.post.