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

parent task not updating when subtask enters FATAL_ERROR state #492

Open
omer21104 opened this issue Nov 21, 2023 · 0 comments
Open

parent task not updating when subtask enters FATAL_ERROR state #492

omer21104 opened this issue Nov 21, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@omer21104
Copy link

Describe the bug
in my scenario, i have a task, which creates a subtask. when the subtask fails at some point (enters FATAL_ERROR state), the parent task is not updating and is stuck in WAITING state forever.

To Reproduce
to reproduce, i created dummy parent and sub tasks to illustrate the problem:
parent task:

name: parent-task
description: parent task
long_description: parent task
 
title_format: parent-task
 
allow_all_resolver_usernames: true
auto_runnable: true
blocked: false
hidden: false
 
retry_max: 1  
steps:
  callSub:
    description: call the subtask
    action:
      type: subtask
      configuration:
        template: my-subtask
        resolver_usernames: '["admin"]'
        resolver_groups: '["admins"]'

my-subtask:

name: my-subtask
description: my-subtask
long_description: my-subtask
 
title_format: my-subtask
 
allow_all_resolver_usernames: true
auto_runnable: true
blocked: false
hidden: false
 
retry_max: 1
steps:
  echoHello:
    description: echo hello
    action:
      type: echo
      configuration:
        output: hello
    conditions:
      - type: check
        if:
          - value: "a"
            operator: EQ 
            expected: "a"
        then:
          this: FATAL_ERROR

Expected behavior
i expect the parent task to enter FATAL ERROR state when a subtask enters FATAL_ERROR

uTask version impacted by the bug
v1.28.X and up

Context which you are currently running utask
Inside a Docker container, running the official docker image, through docker-compose provided by you.

Additional context
i also tried previous versions (1.21 and 1.23) of uTask and the latest version.
if this is a feature, i would very much like to know how to control this behaviour, as i could not find and example or way to handle this.

@omer21104 omer21104 added the bug Something isn't working label Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant