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

Removed task not removed #2027

Closed
wxtim opened this issue Dec 10, 2024 · 3 comments
Closed

Removed task not removed #2027

wxtim opened this issue Dec 10, 2024 · 3 comments

Comments

@wxtim
Copy link
Member

wxtim commented Dec 10, 2024

Task removal doesn't appear to work (it does, behind the scenes).

Using this workflow:

[scheduler]
    allow implicit tasks = True

[scheduling]
    cycling mode = integer
    [[graph]]
        R1 = start => a

[runtime]
    [[root]]
        script = sleep 3

    [[start]]
        script = sleep 10000

Carried out the following operations

  • Triggered a
  • Wait for a to finish
  • Remove a twice.

Peek 2024-12-10 16-55

Note, that the workflow logs show that removal worked the first time, and reasonably enough, not the second time:

2024-12-10T16:55:13Z INFO - Command "remove_tasks" received. ID=93d66e22-5686-4dbd-b721-53158bb66a6f
    remove_tasks(flow=['all'], tasks=['1/a'])
2024-12-10T16:55:13Z INFO - Removed task(s): 1/a (flows=1)
2024-12-10T16:55:13Z INFO - Command "remove_tasks" actioned. ID=93d66e22-5686-4dbd-b721-53158bb66a6f
2024-12-10T16:55:18Z INFO - Command "remove_tasks" received. ID=c69a52d3-0335-4e10-93c1-b4c13bb58df0
    remove_tasks(flow=['all'], tasks=['1/a'])
2024-12-10T16:55:18Z WARNING - Task(s) not removable: 1/a
2024-12-10T16:55:18Z INFO - Command "remove_tasks" actioned. ID=c69a52d3-0335-4e10-93c1-b4c13bb58df0

I was able to force the task state to change using cylc reload. @oliver-sanders said

we are probably missing a data store call somewhere

citation

@wxtim wxtim added the bug Something isn't working label Dec 10, 2024
@wxtim wxtim modified the milestones: 2.7.0, 2.8.0 Dec 10, 2024
@wxtim wxtim self-assigned this Dec 16, 2024
@wxtim
Copy link
Member Author

wxtim commented Dec 17, 2024

Looking at the Cylc Flow end of the problem I've realized that the task is (correctly) not removed from the Data Store, only task flow numbers. This means that lack of flow number stuff in the gui at present mean that the task will remain shown.

I was, on re-examination, unable to remove the task by reloading.

Behind the scenes in the UI:

query {
  taskProxies {
    id
    flowNums
  }
}

{
  "data": {
    "taskProxies": [
      {
        "id": "~tim/remove/three/run1//1/start",
        "flowNums": "[1]"
      },
      {
        "id": "~tim/remove/three/run1//1/a",
        "flowNums": "[]"
      }
    ]
  }
}

@oliver-sanders
Copy link
Member

Looking at the Cylc Flow end of the problem I've realized that the task is (correctly) not removed from the Data Store, only task flow numbers.

I think that is correct, cylc remove is removing the flow numbers, but the task still exists.

The plan was to display no-flow tasks differently to make this more obvious. From the proposal:

  1. To clarify removal operations as well as flow logic in general, visual filtering of flows shall be supported in cylc gui and cylc tui as already planned - visual filtering #470.

@MetRonnie
Copy link
Member

#2016

@MetRonnie MetRonnie removed the bug Something isn't working label Jan 3, 2025
@oliver-sanders oliver-sanders removed this from the 2.7.0 milestone Jan 3, 2025
@MetRonnie MetRonnie closed this as not planned Won't fix, can't repro, duplicate, stale Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants