Skip to content

Nested chords take exponential time (both in caller and in worker) #3571

Open

Description

@not-raspberry
$ celery -A app report

software -> celery:4.0.0 (latentcall) kombu:4.0.0 py:3.5.2
            billiard:3.5.0.2 redis:2.10.5
platform -> system:Linux arch:64bit, ELF imp:CPython
loader   -> celery.loaders.app.AppLoader
settings -> transport:redis results:redis://localhost:6379/11

broker_url: 'redis://localhost:6379/10'
result_backend: 'redis://localhost:6379/11'

Happens on master (b8fa241) and 4.0.0.

Steps to reproduce

app.py (those chained groups could as well be chords):

import gc
from timeit import timeit
from celery import Celery, chain, group
from redis import StrictRedis


BROKER = 'redis://localhost:6379/10'
BACKEND = 'redis://localhost:6379/11'
app = Celery('abc', broker=BROKER, backend=BACKEND)
broker_redis = StrictRedis.from_url(BROKER)
result_redis = StrictRedis.from_url(BACKEND)
broker_redis.flushdb()
result_redis.flushdb()


@app.task
def a_task(*a, **kw):
    print('invoking', a, kw)


def make_group(base_name):
    """Return a group of 2 similarly named tasks."""
    return group([a_task.si('%s-A' % base_name), a_task.si('%s-B' % base_name)])


def build_canvas(depth):
    callback = a_task.si(depth)
    if depth == 0:
        return callback
    else:
        return chain(
            make_group(depth),
            build_canvas(depth=depth - 1)
        )


def build_canvas_unrolled():
    """
    In case you suspect the recursive function above is botched.

    Uncomment the lines below and invoke the task to observe the time increasing.
    """
    from itertools import count
    c = count()
    return chain(
        #make_group(next(c)),
        #chain(
        #  make_group(next(c)),
        #  chain(
                make_group(next(c)),
                chain(
                    make_group(next(c)),
                    chain(
                        make_group(next(c)),
                        chain(
                            make_group(next(c)),
                            chain(
                                make_group(next(c)),
                                chain(
                                    make_group(next(c)),
                                    chain(
                                        make_group(next(c)),
                                        chain(
                                            make_group(next(c)),
                                            a_task.si('fin')
                                        )
                                    )
                                )
                            )
                        )
                    )
                )
        #   )
        #)
    )


def probe(depth):
    canvas = build_canvas(depth)
    print('=' * 10)
    print('Canvas depth:', depth)
    print('Canvas:', canvas)
    print('Took:', timeit('canvas.delay()',
                          globals={'canvas': canvas},
                          number=1))

    print('Broker redis size:', broker_redis.info()['used_memory_human'],
          'Peak:', broker_redis.info()['used_memory_human'])
    print('Result redis size:', result_redis.info()['used_memory_human'],
          'Peak:', result_redis.info()['used_memory_human'])

    # Who knows...
    del canvas
    gc.collect()
    broker_redis.flushdb()
    result_redis.flushdb()


if __name__ == '__main__':
    print('Warm up in case of lazy imports')
    probe(3)
    print('Warm-up finished')

    print('============================= Actual measurements start here.')

    for depth in range(1, 11):
        probe(depth)

Run: $ python app.py

Expected behavior

Chords are scheduled in reasonable time - probably linear.

Actual behavior

Chords schedule in exponential time:

Measurements

Lines "bend" when depth=8 because I made the measurements with depth<8 repeat trice, but failed to clean the redis between them. It's not super important, just don't assume that artifact is relevant. The code above is fixed.

Chart of times: http://www.wolframalpha.com/input/?i=0.009336177026852965+0.012298419023863971+0.013047932996414602+0.021236155065707862+0.055250592064112425+0.19522034004330635+0.7236925609176978+2.9150424430845305+4.2594310390995815+20.646082949009724

Chart of Redis memory (both DBs are actually the same Redis): http://www.wolframalpha.com/input/?i=722880+738380+792820+1050000+2120000+6370000+21650000+108670000+144670000+552680000

$ python app.py  # Run without active workers.
Warm up in case of lazy imports
==========
Canvas depth: 3
Canvas: %celery.chord([abc.a_task('3-A'), abc.a_task('3-B')], header=[abc.a_task('2-A'), abc.a_task('2-B')], body=%abc.a_task([a_task('1-A'), a_task('1-B')], 0), kwargs={})
Took: 0.05945688800420612
Broker redis size: 823.21K Peak: 823.21K
Result redis size: 715.26K Peak: 715.26K
Warm-up finished
============================= Actual measurements start here.
==========
Canvas depth: 1
Canvas: %abc.a_task([a_task('1-A'), a_task('1-B')], 0)
Took: 0.009336177026852965
Broker redis size: 722.88K Peak: 722.88K
Result redis size: 722.88K Peak: 722.88K
==========
Canvas depth: 2
Canvas: %celery.chord([abc.a_task('2-A'), abc.a_task('2-B')], header=[abc.a_task('1-A'), abc.a_task('1-B')], body=abc.a_task(0), kwargs={})
Took: 0.012298419023863971
Broker redis size: 738.38K Peak: 738.38K
Result redis size: 738.38K Peak: 738.38K
==========
Canvas depth: 3
Canvas: %celery.chord([abc.a_task('3-A'), abc.a_task('3-B')], header=[abc.a_task('2-A'), abc.a_task('2-B')], body=%abc.a_task([a_task('1-A'), a_task('1-B')], 0), kwargs={})
Took: 0.013047932996414602
Broker redis size: 756.84K Peak: 756.84K
Result redis size: 792.82K Peak: 792.82K
==========
Canvas depth: 4
Canvas: %celery.chord([abc.a_task('4-A'), abc.a_task('4-B')], header=[abc.a_task('3-A'), abc.a_task('3-B')], body=%chord([abc.a_task('2-A'), abc.a_task('2-B')], header=[abc.a_task('1-A'), abc.a_task('1-B')], body=abc.a_task(0), kwargs={}), kwargs={})
Took: 0.021236155065707862
Broker redis size: 1.05M Peak: 1.05M
Result redis size: 1.05M Peak: 1.05M
==========
Canvas depth: 5
Canvas: %celery.chord([abc.a_task('5-A'), abc.a_task('5-B')], header=[abc.a_task('4-A'), abc.a_task('4-B')], body=%chord([abc.a_task('3-A'), abc.a_task('3-B')], header=[abc.a_task('2-A'), abc.a_task('2-B')], body=%abc.a_task([a_task('1-A'), a_task('1-B')], 0), kwargs={}), kwargs={})
Took: 0.055250592064112425
Broker redis size: 2.08M Peak: 2.08M
Result redis size: 2.12M Peak: 2.12M
==========
Canvas depth: 6
Canvas: %celery.chord([abc.a_task('6-A'), abc.a_task('6-B')], header=[abc.a_task('5-A'), abc.a_task('5-B')], body=%chord([abc.a_task('4-A'), abc.a_task('4-B')], header=[abc.a_task('3-A'), abc.a_task('3-B')], body=%chord([abc.a_task('2-A'), abc.a_task('2-B')], header=[abc.a_task('1-A'), abc.a_task('1-B')], body=abc.a_task(0), kwargs={}), kwargs={}), kwargs={})
Took: 0.19522034004330635
Broker redis size: 6.33M Peak: 6.33M
Result redis size: 6.37M Peak: 6.37M
==========
Canvas depth: 7
Canvas: %celery.chord([abc.a_task('7-A'), abc.a_task('7-B')], header=[abc.a_task('6-A'), abc.a_task('6-B')], body=%chord([abc.a_task('5-A'), abc.a_task('5-B')], header=[abc.a_task('4-A'), abc.a_task('4-B')], body=%chord([abc.a_task('3-A'), abc.a_task('3-B')], header=[abc.a_task('2-A'), abc.a_task('2-B')], body=%abc.a_task([a_task('1-A'), a_task('1-B')], 0), kwargs={}), kwargs={}), kwargs={})
Took: 0.7236925609176978
Broker redis size: 21.61M Peak: 21.61M
Result redis size: 21.65M Peak: 21.65M
==========
Canvas depth: 8
Canvas: %celery.chord([abc.a_task('8-A'), abc.a_task('8-B')], header=[abc.a_task('7-A'), abc.a_task('7-B')], body=%chord([abc.a_task('6-A'), abc.a_task('6-B')], header=[abc.a_task('5-A'), abc.a_task('5-B')], body=%chord([abc.a_task('4-A'), abc.a_task('4-B')], header=[abc.a_task('3-A'), abc.a_task('3-B')], body=%chord([abc.a_task('2-A'), abc.a_task('2-B')], header=[abc.a_task('1-A'), abc.a_task('1-B')], body=abc.a_task(0), kwargs={}), kwargs={}), kwargs={}), kwargs={})
Took: 2.9150424430845305
Broker redis size: 108.63M Peak: 108.63M
Result redis size: 108.67M Peak: 108.67M
==========
Canvas depth: 9
Canvas: %celery.chord([abc.a_task('9-A'), abc.a_task('9-B')], header=[abc.a_task('8-A'), abc.a_task('8-B')], body=%chord([abc.a_task('7-A'), abc.a_task('7-B')], header=[abc.a_task('6-A'), abc.a_task('6-B')], body=%chord([abc.a_task('5-A'), abc.a_task('5-B')], header=[abc.a_task('4-A'), abc.a_task('4-B')], body=%chord([abc.a_task('3-A'), abc.a_task('3-B')], header=[abc.a_task('2-A'), abc.a_task('2-B')], body=%abc.a_task([a_task('1-A'), a_task('1-B')], 0), kwargs={}), kwargs={}), kwargs={}), kwargs={})
Took: 4.2594310390995815
Broker redis size: 144.64M Peak: 144.64M
Result redis size: 144.67M Peak: 144.67M
==========
Canvas depth: 10
Canvas: %celery.chord([abc.a_task('10-A'), abc.a_task('10-B')], header=[abc.a_task('9-A'), abc.a_task('9-B')], body=%chord([abc.a_task('8-A'), abc.a_task('8-B')], header=[abc.a_task('7-A'), abc.a_task('7-B')], body=%chord([abc.a_task('6-A'), abc.a_task('6-B')], header=[abc.a_task('5-A'), abc.a_task('5-B')], body=%chord([abc.a_task('4-A'), abc.a_task('4-B')], header=[abc.a_task('3-A'), abc.a_task('3-B')], body=%chord([abc.a_task('2-A'), abc.a_task('2-B')], header=[abc.a_task('1-A'), abc.a_task('1-B')], body=abc.a_task(0), kwargs={}), kwargs={}), kwargs={}), kwargs={}), kwargs={})
Took: 20.646082949009724
Broker redis size: 552.64M Peak: 552.64M
Result redis size: 552.68M Peak: 552.68M

The b'celery\x06\x169' list items in the broker redis seem to be heavily duplicated.
The list after executing a canvas with depth=4 (deeply deserialised by hand and pretty-printed as json): https://gist.github.com/not-raspberry/ee60565b584d0342c96345d744baaa3d

Activity

  1. changed the title [-]Nested chords execute in exponential time[/-] [+]Nested chords take exponential time (both in caller and in worker)[/+] on Nov 9, 2016
  2. not-raspberry commented on Nov 9, 2016

    @not-raspberry
    Author

    As a side note, if you enable a worker (with -l DEBUG), you can observe how it struggles with the first elements, until only 8 levels are remaining. Then it runs normally.

  3. auvipy commented on Dec 19, 2017

    @auvipy
    Member

    could you verify this still happens on master?

  4. added this to the milestone on Dec 19, 2017
  5. not-raspberry commented on Dec 20, 2017

    @not-raspberry
    Author
    $ virtualenv ../CELERY_REPRO/ -ppython3.6
    Running virtualenv with interpreter /usr/bin/python3.6
    Using base prefix '/usr'
    New python executable in /home/k/IDE/CELERY_REPRO/bin/python3.6
    Also creating executable in /home/k/IDE/CELERY_REPRO/bin/python
    Installing setuptools, pip, wheel...done.
    $ pip install git+https://github.com/celery/celery.git@2547666a1ea13b27bc13ef296ae43a163ecd4ab3 redis
    Collecting git+https://github.com/celery/celery.git@2547666a1ea13b27bc13ef296ae43a163ecd4ab3
      Cloning https://github.com/celery/celery.git (to 2547666a1ea13b27bc13ef296ae43a163ecd4ab3) to /tmp/pip-vwky76rq-build
      Could not find a tag or branch '2547666a1ea13b27bc13ef296ae43a163ecd4ab3', assuming commit.
    Collecting redis
      Using cached redis-2.10.6-py2.py3-none-any.whl
    Collecting pytz>dev (from celery==4.1.0)
      Using cached pytz-2017.3-py2.py3-none-any.whl
    Collecting billiard<3.6.0,>=3.5.0.2 (from celery==4.1.0)
      Using cached billiard-3.5.0.3-py3-none-any.whl
    Collecting kombu<5.0,>=4.0.2 (from celery==4.1.0)
      Using cached kombu-4.1.0-py2.py3-none-any.whl
    Collecting amqp<3.0,>=2.1.4 (from kombu<5.0,>=4.0.2->celery==4.1.0)
      Using cached amqp-2.2.2-py2.py3-none-any.whl
    Collecting vine>=1.1.3 (from amqp<3.0,>=2.1.4->kombu<5.0,>=4.0.2->celery==4.1.0)
      Using cached vine-1.1.4-py2.py3-none-any.whl
    Installing collected packages: redis, pytz, billiard, vine, amqp, kombu, celery
      Running setup.py install for celery ... done
    Successfully installed amqp-2.2.2 billiard-3.5.0.3 celery-4.1.0 kombu-4.1.0 pytz-2017.3 redis-2.10.6 vine-1.1.4
    $ python --version
    Python 3.6.1
    $ celery --version
    4.1.0 (latentcall)
    $ python app.py
    Warm up in case of lazy imports
    ==========
    Canvas depth: 3
    Canvas: %celery.chord([abc.a_task('3-A'), abc.a_task('3-B')], kwargs={}, header=[abc.a_task('2-A'), abc.a_task('2-B')], body=%abc.a_task([a_task('1-A'), a_task('1-B')], 0))
    Took: 0.031210422981530428
    Broker redis size: 1.02M Peak: 1.02M
    Result redis size: 1.02M Peak: 1.02M
    Warm-up finished
    ============================= Actual measurements start here.
    ==========
    Canvas depth: 1
    Canvas: %abc.a_task([a_task('1-A'), a_task('1-B')], 0)
    Took: 0.0017684059857856482
    Broker redis size: 1.00M Peak: 1.00M
    Result redis size: 1.00M Peak: 1.00M
    ==========
    Canvas depth: 2
    Canvas: %celery.chord([abc.a_task('2-A'), abc.a_task('2-B')], kwargs={}, header=[abc.a_task('1-A'), abc.a_task('1-B')], body=abc.a_task(0))
    Took: 0.002270196011522785
    Broker redis size: 1.01M Peak: 1.01M
    Result redis size: 1.01M Peak: 1.01M
    ==========
    Canvas depth: 3
    Canvas: %celery.chord([abc.a_task('3-A'), abc.a_task('3-B')], kwargs={}, header=[abc.a_task('2-A'), abc.a_task('2-B')], body=%abc.a_task([a_task('1-A'), a_task('1-B')], 0))
    Took: 0.003008022002177313
    Broker redis size: 1.03M Peak: 1.03M
    Result redis size: 1.03M Peak: 1.03M
    ==========
    Canvas depth: 4
    Canvas: %celery.chord([abc.a_task('4-A'), abc.a_task('4-B')], kwargs={}, header=[abc.a_task('3-A'), abc.a_task('3-B')], body=%chord([abc.a_task('2-A'), abc.a_task('2-B')], kwargs={}, header=[abc.a_task('1-A'), abc.a_task('1-B')], body=abc.a_task(0)))
    Took: 0.005414370010839775
    Broker redis size: 1.11M Peak: 1.11M
    Result redis size: 1.11M Peak: 1.11M
    ==========
    Canvas depth: 5
    Canvas: %celery.chord([abc.a_task('5-A'), abc.a_task('5-B')], kwargs={}, header=[abc.a_task('4-A'), abc.a_task('4-B')], body=%chord([abc.a_task('3-A'), abc.a_task('3-B')], kwargs={}, header=[abc.a_task('2-A'), abc.a_task('2-B')], body=%abc.a_task([a_task('1-A'), a_task('1-B')], 0)))
    Took: 0.014235051989089698
    Broker redis size: 1.40M Peak: 1.40M
    Result redis size: 1.44M Peak: 1.44M
    ==========
    Canvas depth: 6
    Canvas: %celery.chord([abc.a_task('6-A'), abc.a_task('6-B')], kwargs={}, header=[abc.a_task('5-A'), abc.a_task('5-B')], body=%chord([abc.a_task('4-A'), abc.a_task('4-B')], kwargs={}, header=[abc.a_task('3-A'), abc.a_task('3-B')], body=%chord([abc.a_task('2-A'), abc.a_task('2-B')], kwargs={}, header=[abc.a_task('1-A'), abc.a_task('1-B')], body=abc.a_task(0))))
    Took: 0.04580355098005384
    Broker redis size: 3.08M Peak: 3.08M
    Result redis size: 3.08M Peak: 3.08M
    ==========
    Canvas depth: 7
    Canvas: %celery.chord([abc.a_task('7-A'), abc.a_task('7-B')], kwargs={}, header=[abc.a_task('6-A'), abc.a_task('6-B')], body=%chord([abc.a_task('5-A'), abc.a_task('5-B')], kwargs={}, header=[abc.a_task('4-A'), abc.a_task('4-B')], body=%chord([abc.a_task('3-A'), abc.a_task('3-B')], kwargs={}, header=[abc.a_task('2-A'), abc.a_task('2-B')], body=%abc.a_task([a_task('1-A'), a_task('1-B')], 0))))
    Took: 0.13966325198998675
    Broker redis size: 9.44M Peak: 9.44M
    Result redis size: 9.47M Peak: 9.47M
    ==========
    Canvas depth: 8
    Canvas: %celery.chord([abc.a_task('8-A'), abc.a_task('8-B')], kwargs={}, header=[abc.a_task('7-A'), abc.a_task('7-B')], body=%chord([abc.a_task('6-A'), abc.a_task('6-B')], kwargs={}, header=[abc.a_task('5-A'), abc.a_task('5-B')], body=%chord([abc.a_task('4-A'), abc.a_task('4-B')], kwargs={}, header=[abc.a_task('3-A'), abc.a_task('3-B')], body=%chord([abc.a_task('2-A'), abc.a_task('2-B')], kwargs={}, header=[abc.a_task('1-A'), abc.a_task('1-B')], body=abc.a_task(0)))))
    Took: 0.5382205849746242
    Broker redis size: 36.88M Peak: 36.88M
    Result redis size: 36.91M Peak: 36.91M
    ==========
    Canvas depth: 9
    Canvas: %celery.chord([abc.a_task('9-A'), abc.a_task('9-B')], kwargs={}, header=[abc.a_task('8-A'), abc.a_task('8-B')], body=%chord([abc.a_task('7-A'), abc.a_task('7-B')], kwargs={}, header=[abc.a_task('6-A'), abc.a_task('6-B')], body=%chord([abc.a_task('5-A'), abc.a_task('5-B')], kwargs={}, header=[abc.a_task('4-A'), abc.a_task('4-B')], body=%chord([abc.a_task('3-A'), abc.a_task('3-B')], kwargs={}, header=[abc.a_task('2-A'), abc.a_task('2-B')], body=%abc.a_task([a_task('1-A'), a_task('1-B')], 0)))))
    Took: 2.1579233310185373
    Broker redis size: 144.88M Peak: 144.88M
    Result redis size: 144.92M Peak: 144.92M
    ==========
    Canvas depth: 10
    Canvas: %celery.chord([abc.a_task('10-A'), abc.a_task('10-B')], kwargs={}, header=[abc.a_task('9-A'), abc.a_task('9-B')], body=%chord([abc.a_task('8-A'), abc.a_task('8-B')], kwargs={}, header=[abc.a_task('7-A'), abc.a_task('7-B')], body=%chord([abc.a_task('6-A'), abc.a_task('6-B')], kwargs={}, header=[abc.a_task('5-A'), abc.a_task('5-B')], body=%chord([abc.a_task('4-A'), abc.a_task('4-B')], kwargs={}, header=[abc.a_task('3-A'), abc.a_task('3-B')], body=%chord([abc.a_task('2-A'), abc.a_task('2-B')], kwargs={}, header=[abc.a_task('1-A'), abc.a_task('1-B')], body=abc.a_task(0))))))
    Took: 8.568815963022644
    Broker redis size: 552.88M Peak: 552.88M
    Result redis size: 552.92M Peak: 552.92M
    $
    
  6. not-raspberry commented on Dec 20, 2017

    @not-raspberry
    Author

    Still occurs.

  7. auvipy commented on Jan 15, 2018

    @auvipy
    Member

    Lets see if it gone away after 4.2 release by this month.

  8. modified the milestones: , v4.3 on May 28, 2018
  9. auvipy commented on May 28, 2018

    @auvipy
    Member

    could you try celery 4.2 rc4?

  10. not-raspberry commented on May 28, 2018

    @not-raspberry
    Author

    The full code sample is included in the first comment. You can try it yourself or even include it as a performance test.

  11. 24 remaining items

  12. modified the milestones: 5.3.x, 5.5 on Jun 25, 2024
  13. dan-licht commented on Jan 7, 2025

    @dan-licht

    any update on this? I'm looking into implementing nested chords, but have some hesitancy based on this issue

  14. modified the milestones: 5.5.0, 5.7.0 on May 14, 2025
  15. auvipy commented on May 14, 2025

    @auvipy
    Member

    any update on this? I'm looking into implementing nested chords, but have some hesitancy based on this issue

    you can try to reproduce this with latest celery release, and see how that goes?

  16. chrisbarber commented on Jun 4, 2025

    @chrisbarber
    Contributor

    I observe the same issue on 5.5.3

  17. auvipy commented on Jun 4, 2025

    @auvipy
    Member

    thanks for confirming!

  18. chrisbarber commented on Jun 4, 2025

    @chrisbarber
    Contributor

    thanks for confirming!

    Looking more into my case, I found that switching to pickle for serialization completely solved the issue. Json recursively expands because it cannot handle the object references. So I ended up with 6MB messages whereas the pickle is tiny.

    It seems there could be a handful of issues that could all be this same root cause. Namely the one we are commenting on plus

    It seems there might be trouble collecting the right information in order to make sense of what is going on here, namely 1) what serializer people are using and 2) if switching serializer to pickle resolves the issue for people.

  19. auvipy commented on Jun 5, 2025

    @auvipy
    Member

    That's a very helpful finding! Thanks again

  20. aurangzaib048 commented on Apr 6, 2026

    @aurangzaib048
    Contributor

    I've been investigating the root cause of this issue. Here's what I found and some questions for the @auvipy @Nusnus.

    Root cause:

    chord.freeze() stores self.body in each header task's options.chord field. In memory this is a shared reference (zero cost). But when header tasks are published to the broker via group._apply_tasks, each task is serialized independently (amqp.py:398). JSON serialization expands the full nested structure at every level since it has no concept of shared references.

    With N header tasks per chord and D nesting depth, the outermost header body size is O(N^D). At depth 10 with 2 tasks per group, each header carries ~132MB of JSON.

    This explains chrisbarber's finding that pickle resolves it, as pickle handles object references natively.

    Questions:

    1. The chord body is embedded in every header task so each worker can independently determine the callback after the last chord member finishes. Would it be acceptable to store the chord body once in the result backend (keyed by group_id) during chord.apply_async, and have on_chord_part_return fetch it by key instead of reading it from request.chord? This changes the header task from self-contained to backend-dependent.
    2. A less invasive alternative: store the chord body once in the result backend, but also keep a lightweight reference ({'chord_ref': group_id}) in the header tasks. on_chord_part_return checks for the reference and fetches the full body. This preserves backward compatibility since old workers would still get a dict in request.chord (just a small one they don't understand, so they'd fail gracefully).
    3. Another option with zero protocol changes: since _apply_tasks already iterates header tasks one by one (sig.apply_async at line 1798), could we pre-serialize the chord body once and pass the raw bytes to each header task's publish call, bypassing per-task serialization of the chord field? This would keep the message format identical but avoid the repeated serialization cost.
    4. Is there appetite for a task_serializer-level fix (handling shared references in the JSON serializer), or should this be solved at the canvas/protocol layer?
    5. Should we scope a first fix to just reducing the serialization cost (option 3 above), or go for the structural fix (option 1/2) that also reduces broker message sizes?
  21. removed their assignment
    on Apr 6, 2026
  22. auvipy commented on Apr 21, 2026

    @auvipy
    Member

    we should first focus on the structural fix

  23. modified the milestones: 5.7.0, 5.8.0 on Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions