Tom Blake
07/09/2021, 8:11 AMException raised while calling state handlers: ValueError("Failed to find current tenant None in result {'data': {'tenant': [{'slug': 'myTenant', 'id': myTenantId}]}}")
Any ideas to what could be causing this?Tom Blake
07/09/2021, 8:13 AMSLACK_WEBHOOK_URL
secret in Prefect Cloud and have a flow set up like this:
from prefect import Flow
from prefect.engine.state import Success
from prefect.tasks.secrets import PrefectSecret
from prefect.utilities.notifications import slack_notifier
handler = slack_notifier(only_states=[Success])
with Flow(
"main_flow",
,...,
state_handlers=[handler]
) as flow:
secret = PrefectSecret("SLACK_WEBHOOK_URL")
flow.add_task(secret)
The flow tasks succeed but the flow then fails on the given errorZach Angell
Tom Blake
07/10/2021, 6:40 AMprefect agent kubernetes install
⢠Yup this flow was working before. We only started seeing the error when we added the slack handler. The tasks all succeed as usual but now it's failing when calling the state handler
⢠We're using a Service account API keyZach Angell
Tom Blake
07/12/2021, 12:24 AMZach Angell
Tom Blake
07/14/2021, 9:20 AM