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
The error you're encountering, AttributeError: 'NoneType' object has no attribute 'fetch_task', suggests that the FlyteRemote object is not properly initialized or configured. This can happen if the configuration file or the secrets required for authentication are not correctly set up.
According to the Flyte documentation on eager workflows, you need to ensure that your FlyteRemote object is correctly configured with the necessary secrets and project/domain settings. Here's an example of how to set up an eager workflow for remote execution:
fromflytekit.remoteimportFlyteRemotefromflytekit.configurationimportConfigfromflytekit.experimentalimporteager@eager(remote=FlyteRemote(config=Config.auto(config_file="config.yaml"),default_project="flytesnacks",default_domain="development", ),client_secret_group="<my_client_secret_group>",client_secret_key="<my_client_secret_key>",)asyncdefeager_workflow_remote(x: int) ->int:
# Your workflow logic here
...
Ensure that your config.yaml file is correctly set up and that the client_secret_group and client_secret_key are properly configured for your Flyte cluster.
Would you like more detailed guidance on setting up the configuration file or troubleshooting this issue further?
Describe the bug
When running the simple eager workflow on --remote, I get the follwoing error
AttributeError: 'NoneType' object has no attribute 'fetch_task'
Expected behavior
Should run the workflow according to the documentation
Additional context to reproduce
Screenshots
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: