Skip to content

Tracking stacks are not cleaned up on automation stop #336

@pascalzauberzeug

Description

@pascalzauberzeug

The stacks of rosys.analysis.track are not cleaned up when an automation is stopped manually, only when the automation is finished.

So when stop is pressed three times, it will always show:

do_something
do_something
do_something
import rosys
from nicegui import ui
from rosys.analysis import track

track.ui()
label = ui.label('not started')


@track
async def do_something():
    for i in range(10):
        label.set_text(f'{i}/10')
        await rosys.sleep(1)
    label.set_text('done')


automator = rosys.automation.Automator(steerer=None, default_automation=do_something)
with ui.row():
    rosys.automation.automation_controls(automator)


ui.run()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions