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!

Inquiry about Sensors and Agents Usage

Summary

The user is inquiring about the use of sensors or agents with a conditional statement, suggesting it could function like a task that assigns a value from sensing and checks it within a conditional block. They recognize that this is feasible if the agent task returns a value but mention they haven't seen this specific use case before. They provide an example where a Sensor's poke method returns a bool, implying that this should work.

Status
resolved
Tags
    Source
    #flyte-agents
      b

      blaketastic2

      9/13/2024

      If I use a Sensor as an example, the poke method is returning a bool so that should be fine?

      e

      eric901201

      9/13/2024

      yes, it's doable if it return the agent task return a value

      b

      blaketastic2

      9/13/2024

      has anyone used sensors/agents w/ conditionally? I'm assuming it's just like a task where we would say val = sensing(...) and then check val in the conditional block?

      e

      eric901201

      9/13/2024

      yes it's ok

      e

      eric901201

      9/13/2024

      But I didn't see the usecase before