Skip to content

TaskRunner prevents Director from exiting #592

@rdeits

Description

@rdeits

It looks like the TaskRunner itself is keeping the Director app alive even when the window is closed (or when ctrl+Q is pressed). To reproduce, launch the drake-visualizer app and then run (in the console):

from director import taskrunner
import time
def task():
    while True:
        time.sleep(0.1)
tr = taskrunner.TaskRunner()
tr.callOnThread(task)

then close the Director console and main window. The drake-visualizer binary keeps running until you ctrl+c it from the terminal.

I'm trying to figure out how to fix this, but haven't had any luck yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions