Improved the quickstart a bit

This commit is contained in:
Pablo Martin 2023-01-18 17:20:54 +01:00
parent f9720efe30
commit 4b23354d44

View file

@ -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**