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!

500 Status Code Error in Workflow

Summary

The user is facing a 500 status code error in their workflow due to a missing referenced task, despite having set up a failure node and registered the "on_failure" task. Both the task and workflow are defined in the same file. The user mentions their backend version is outdated at 1.5.1 and is considering upgrading to 1.13, as failure nodes were introduced in version 1.10.7. They also suggest that the documentation should include a note about new features available after version 1.10.7 for easier access to information.

Status
open
Tags
    Source
    #ask-the-community
      c

      curupa

      10/4/2024

      That's a good idea. Thank you. Let me open an issue.

      r

      rupsha

      10/4/2024

      Thanks.. is there an easier way to find this info… say in the documentation for new features? Just a line saying “available after 1.10.7” would be perfect :slightly_smiling_face:

      c

      curupa

      10/4/2024

      failure nodes were introduced in <https://github.com/flyteorg/flyte/releases/tag/v1.10.7|Flyte 1.10.7>.

      e

      eric901201

      10/4/2024

      Propeller and admin

      e

      eric901201

      10/4/2024

      Yes please do it

      r

      rupsha

      10/4/2024

      Currently on 1.5.1… move to 1.13?

      r

      rupsha

      10/4/2024

      aagghh.. I was dreading you were going to say that

      k

      kumare

      10/4/2024

      Version of backend is old

      r

      rupsha

      10/4/2024

      and the wf looks like this:

      failure_policy=WorkflowFailurePolicy.FAIL_AFTER_EXECUTABLE_NODES_COMPLETE,
          on_failure=my_failure_task,
      )
      def mywf():
        ...
        ...```
      
      r

      rupsha

      10/4/2024

      The task and the workflow are declared in the same file

      r

      rupsha

      10/4/2024

      Hi team.. I’ve set up a failure node on my workflow following the instructions https://docs.flyte.org/en/latest/user_guide/development_lifecycle/failure_node.html|here. However when I actually try to launch the workflow i see an error for the task defined for “on_failure”. I do see that the task was actually packaged, published and registered

      (flytekit 1.11)

      
      AND
      
      /tmp/register4030374023/059_flyte.workflows.mywf.my_failure_task_1.pb                                            | Success | Successfully registered file |```
      When I actually try to launch the wf from Flyte UI, I see this…
      ```Request failed with status code 500 Collected Errors: 1 Error 0: Code: TaskReferenceNotFound, Node Id: fn0, Description: Referenced Task [resource_type:TASK project:"myproj" domain:"production" name:"flyte.workflows.mywf.my_failure_task" version:"some_git_sha" ] not found.```