Improved the quickstart a bit
This commit is contained in:
parent
f9720efe30
commit
4b23354d44
1 changed files with 10 additions and 6 deletions
16
README.md
16
README.md
|
|
@ -11,12 +11,7 @@ You can find below examples of how to leverage `lolafect` in your flows.
|
|||
```python
|
||||
from lolafect.lolaconfig import build_lolaconfig
|
||||
|
||||
lolaconfig = build_lolaconfig(
|
||||
flow_name="some-flow",
|
||||
env_s3_bucket="bucket",
|
||||
kubernetes_labels=["some_label"],
|
||||
kubernetes_image="the-image:latest",
|
||||
)
|
||||
lolaconfig = build_lolaconfig(flow_name="some-flow")
|
||||
|
||||
# Now you can access all the env stuff from here
|
||||
lolaconfig.FLOW_NAME
|
||||
|
|
@ -30,6 +25,15 @@ lolaconfig.TRINO_CREDENTIALS
|
|||
lolaconfig.SSH_TUNNEL_CREDENTIALS
|
||||
lolaconfig.PREFECT_HOST
|
||||
# etc
|
||||
|
||||
# Your flow is different from the typical one?
|
||||
# You can customize the behaviour of LolaConfig
|
||||
lolaconfig = build_lolaconfig(
|
||||
flow_name="some-flow",
|
||||
env_s3_bucket="my-odd-bucket",
|
||||
kubernetes_labels=["some-unusual-label"],
|
||||
kubernetes_image="the-image:not-the-production-one",
|
||||
)
|
||||
```
|
||||
|
||||
**Send a warning message to slack if your tasks fails**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue