-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ingestion/prefect-plugin): fixes
- Loading branch information
1 parent
f03f48a
commit 1bf3fce
Showing
5 changed files
with
94 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 14 additions & 5 deletions
19
metadata-ingestion-modules/prefect-plugin/src/prefect_datahub/example/save_block.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
import asyncio | ||
|
||
from prefect_datahub.datahub_emitter import DatahubEmitter | ||
|
||
DatahubEmitter( | ||
datahub_rest_url="http://localhost:8080", | ||
env="DEV", | ||
platform_instance="local_prefect", | ||
).save("datahub-block", overwrite=True) | ||
|
||
async def save_datahub_emitter(): | ||
datahub_emitter = DatahubEmitter( | ||
datahub_rest_url="http://localhost:8080", | ||
env="PROD", | ||
platform_instance="local_prefect", | ||
) | ||
|
||
await datahub_emitter.save("datahub-block-7", overwrite=True) | ||
|
||
|
||
asyncio.run(save_datahub_emitter()) |