You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
github-actionsbot
changed the title
Support passing event callbacks to EventManager via dbtRunner
[CT-1928] Support passing event callbacks to EventManager via dbtRunner
Jan 26, 2023
My have to add a method to add a callback to EventManager, and use the ctx to carry the callbacks from dbtRunner's constructor to preflight where we setup the logger.
Hey, the current implementation in #7214 seems to wait for the callbacks to be processed before continuing with the invocation. Let me share an example:
Hello!! Do you know about the future support for registering callbacks on dbt's EventManager? "The current behavior blocks subsequent steps, but this may not be guaranteed in future versions". "Given that the Python interface for events is less mature than the structured logging interface", would it be better to rely on parsing JSON-formatted logs for handling real-time events, or are callbacks still the recommended approach for this use case? @MichelleArk
Accept event callbacks as part of
dbtRunner
's constructor and use them to setup theEventManager
for programmatic invocations of dbt.The text was updated successfully, but these errors were encountered: