sparse-carpenter-66912
04/11/2025, 8:03 AMjolly-florist-66728
04/11/2025, 8:03 AMfrom flytekit import LaunchPlan, FlyteRemote, Config
# Define your launch plan
launch_plan = LaunchPlan.get_or_create(
workflow=my_workflow,
name="my_launch_plan",
schedule=None, # Add a schedule if needed
)
# Set up FlyteRemote
remote = FlyteRemote(config=Config.auto(), default_project="my_project", default_domain="development")
# Register the launch plan
remote.register_launch_plan(launch_plan)
Alternatively, you can register the launch plan using the command line with pyflyte register
. This will make the launch plan available in the Flyte UI. Would you like more details on using the command line method?
Sources:
- FlyteRemote examples 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.sparse-carpenter-66912
04/11/2025, 8:17 AMFlyteSystemUnavailableException: Flyte cluster is currently unavailable. Please make sure the cluster is up and running.
I have a local cluster running.
Using pyflyte register
I see a lot of green check marks, but then they do not show up in the UIjolly-florist-66728
04/11/2025, 8:17 AMFlyteSystemUnavailableException
suggests that the FlyteRemote client is unable to connect to your Flyte cluster. Ensure that your local cluster is running and that the configuration file used by FlyteRemote points to the correct endpoint. Verify that the FLYTECTL_CONFIG
environment variable is set correctly to your local configuration file, and check that the Flyte services are accessible.
For the pyflyte register
command, if you see green check marks but the entities do not appear in the UI, it might be due to a mismatch in the project or domain settings. Ensure that the project and domain specified during registration match those configured in your Flyte UI. You can verify the registration by checking the logs for any warnings or errors that might indicate a problem.
Would you like more detailed guidance on troubleshooting these issues?
Sources:
- https://github.com/flyteorg/flyte/issues/2884
- https://github.com/flyteorg/flyte/issues/5784 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.sparse-carpenter-66912
04/11/2025, 8:23 AMexport FLYTECTL_CONFIG=~/.flyte/config-sandbox.yaml
to make them show up with the pyflyte regsiter
commandsparse-carpenter-66912
04/11/2025, 1:14 PMFlyteSystemUnavailableException: Flyte cluster is currently unavailable. Please make sure the cluster is up and running.
Do I need to add a config?
remote = FlyteRemote(config=Config.auto(), default_project="schedule-test", default_domain="development")
remote.register_launch_plan(lp_scheduled, project="schedule-test", domain="development", version="0.0.1")
Adding Config.auto(config_file="~/.flyte/config-sandbox.yaml")
also did not workjolly-florist-66728
04/11/2025, 1:14 PMFlyteSystemUnavailableException
, ensure that the configuration used by FlyteRemote
correctly points to your Flyte cluster. Here are some steps to troubleshoot and configure it:
1. Verify Configuration File: Ensure that your ~/.flyte/config-sandbox.yaml
file is correctly set up with the appropriate endpoint and other necessary settings. The endpoint should match the address where your Flyte cluster is running.
2. Explicit Configuration: Instead of using Config.auto()
, explicitly specify the endpoint in your configuration. Here's an example:
from flytekit.configuration import Config
from flytekit.remote import FlyteRemote
config = Config.for_endpoint(endpoint="http://localhost:30080", insecure=True)
remote = FlyteRemote(config=config, default_project="schedule-test", default_domain="development")
remote.register_launch_plan(lp_scheduled, project="schedule-test", domain="development", version="0.0.1")
3. Check Cluster Status: Ensure that your Flyte cluster is running and accessible. You can check the status of your cluster using kubectl
commands if you're using Kubernetes.
4. Environment Variables: Make sure that any necessary environment variables, such as FLYTECTL_CONFIG
, are set correctly in your shell session.
Would you like more detailed guidance on any of these steps?
Sources:
- Running in a local cluster 👍 0 button 👎 1 button 💡 Hint: Mention @ancient-wolf-19325 in the thread for followups.