Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using an Eager Workflow on --remote does not work #5629

Open
2 tasks done
tospe opened this issue Aug 3, 2024 · 2 comments
Open
2 tasks done

Using an Eager Workflow on --remote does not work #5629

tospe opened this issue Aug 3, 2024 · 2 comments
Assignees
Labels
bug Something isn't working eager-workflows

Comments

@tospe
Copy link

tospe commented Aug 3, 2024

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

  1. Have a remote cluster
  2. Execute a simple eager workflow

Screenshots

image

Are you sure this issue hasn't been raised already?

  • Yes

Have you read the Code of Conduct?

  • Yes
@tospe tospe added bug Something isn't working untriaged This issues has not yet been looked at by the Maintainers labels Aug 3, 2024
Copy link

welcome bot commented Aug 3, 2024

Thank you for opening your first issue here! 🛠

Copy link

runllm bot commented Aug 3, 2024

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:

from flytekit.remote import FlyteRemote
from flytekit.configuration import Config
from flytekit.experimental import eager

@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>",
)
async def eager_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?

Sources:


This is an AI-generated response and your feedback is appreciated! Please leave a 👍 if this is helpful and 👎 if it is not.

Mention @RunLLM to ask follow-up questions. See runllm.com for more!

@eapolinario eapolinario removed the untriaged This issues has not yet been looked at by the Maintainers label Aug 8, 2024
@eapolinario eapolinario self-assigned this Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working eager-workflows
Projects
Status: Assigned
Development

No branches or pull requests

2 participants