Skip to content

cli: renku status fails after removing workflow #3728

@schymans

Description

@schymans

Describe the bug

A clear and concise description.

Details

Please verify and redact the details.

Renku version: 2.9.3
OS: Linux (#1 SMP PREEMPT_DYNAMIC progress-linux 6.9.2-1exp1progress7.99u)
Python: 3.10.13

Traceback

Traceback (most recent call last):
  File "[...]/site-packages/renku/infrastructure/gateway/activity_gateway.py", line 123, in get_downstream_activity_chains
    downstream_chains = [tuple(r.downstream for r in c) for c in downstream_chains]
  File "[...]/site-packages/renku/infrastructure/gateway/activity_gateway.py", line 123, in <listcomp>
    downstream_chains = [tuple(r.downstream for r in c) for c in downstream_chains]
  File "[...]/site-packages/zc/relation/catalog.py", line 1142, in _yieldRelationChains
    res = tuple(t)
  File "[...]/site-packages/zc/relation/catalog.py", line 1138, in <genexpr>
    t = (resolve(t, self, cache) for t in p)
  File "[...]/site-packages/renku/infrastructure/gateway/database_gateway.py", line 81, in load_downstream_relations
    return btree[token]
KeyError: '/activities/bf074d031839a74fce6b2f93ec92fe6e4ba9f2d8:/activities/352d1ca56c920cb8ec6ca5bde4d7e37fee322551'

Additional context

Following an attempt to remove cyclical workflows (https://renku.discourse.group/t/how-to-resolve-circular-workflows/1042/13), I removed an activity and then ran renku status to check how many more cyclical workflows I have. Here is the command I ran before renku status: renku workflow revert --force /activities/352d1ca56c920cb8ec6ca5bde4d7e37fee322551

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions