lava-nc / lava

A Software Framework for Neuromorphic Computing
https://lava-nc.org
Other
535 stars 136 forks source link

PyAsyncProcessModel should wait to start until process.run is called. #715

Open tim-shea opened 1 year ago

tim-shea commented 1 year ago

Describe the bug PyAsyncProcessModel starts running (run_async is called) during runtime creation, instead of waiting until a subsequent run mgmt command is sent by the runtime.

To reproduce current behavior Implement a minimal PyAsyncProcessModel. Print when run_async is called. Use process.create_runtime to show that run_async is called even if process.run is not called.

Expected behavior PyAsyncProcessModel should not start running until a run mgmt command is sent / until process.run is called.