Progress of Flyte workflow and task execution is delimited by a series of events that are passed from the FlytePropeller to FlyteAdmin. Administrators can configure FlyteAdmin to send these events onwards to a pub/sub system like SNS/SQS as well. Note that this configuration is distinct from the configuration for notifications Notifications. They should use separate topics/queues. These events are meant for external consumption, outside the Flyte platform, whereas the notifications pub/sub setup is entirely for Admin itself to send email/pagerduty/etc notifications.
The external events flow can be useful for tracking data lineage and integrating with existing systems within your organization.
Event egress can be configured to work with AWS using SQS and SNS or GCP Cloud Pub/Sub.
To turn on, add the following to your FlyteAdmin:
external_events.yaml: | externalEvents: enable: true aws: region: us-east-2 eventsPublisher: eventTypes: - all topicName: arn:aws:sns:us-east-2:123456:123-my-topic type: aws
There should already be a section for this in the
Update the settings under the
external_events key and turn
true. The same flag is used for Helm as for Admin itself.
The events emitted will be base64 encoded binary representation of the following IDL messages:
Which of these three events is being sent can be distinguished by the subject line of the message, which will be one of the three strings above.
Note that these message wrap the underlying event messages found here.
The message format may eventually change to an enriched and distinct message type in future releases.