F

Flyte enables you to build & deploy data & ML pipelines, hassle-free. The infinitely scalable and flexible workflow orchestration platform that seamlessly unifies data, ML and analytics stacks. Explore and Join the Flyte Community!

Google Cloud Storage Workflow Issue

Summary

The user is developing a Google Cloud Storage workflow to check for a file's existence and execute a subworkflow or a no-operation task based on that. They are facing a compilation error related to a required value during workflow registration and are confused about the term "is_none" and handling optional inputs. The user seeks a solution that avoids adding a task that returns a boolean. They note that "is_none" may not work with promises and that the output types of "then" nodes must match. After testing, they found that only boolean outputs work correctly, and using a field from a dataclass or namedtuple in the condition fails. They concluded that unpacking the task's output and using the boolean directly is the only viable solution. The user also mentioned defining a task that returns a tuple with the actual file and a boolean to complete the condition.

Status
resolved
Tags
    Source
    #ask-the-community