jayhack / prefect

The easiest way to coordinate your dataflow

Home Page:https://prefect.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make it easier to emit a one-off event.

jayhack opened this issue · comments

First check

  • I added a descriptive title to this issue.
  • I used the GitHub search to find a similar request and didn't find it.
  • I searched the Prefect documentation for this feature.

Prefect Version

2.x

Describe the current behavior

Currently to emit a single event you have to use the events worker context managers, build the event object manually.

Describe the proposed behavior

It would be nice if there was just a simple emit_event function that handled managing the event worker and initializing the event object for you.

Example Use

No response

Additional context

No response