prefect.server.events.messaging
EventPublisher
Bases: Publisher
Source code in src/prefect/server/events/messaging.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
|
publish_event(event)
async
Publishes the given events
Parameters:
Name | Type | Description | Default |
---|---|---|---|
event
|
ReceivedEvent
|
the event to publish |
required |
Source code in src/prefect/server/events/messaging.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
|
publish(events)
async
Send the given events as a batch via the default publisher
Source code in src/prefect/server/events/messaging.py
11 12 13 14 15 |
|