-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
Labels
bugSomething isn't workingSomething isn't working