beanlab / quest_framework

A Python framework for fault-tolerant workflows
1 stars 0 forks source link

Resource Stream #35

Closed kjstanding closed 7 months ago

kjstanding commented 7 months ago

Implement a public function stream_resources to yield resource updates as an async generator function. This will yield a real time screenshot of resources to the caller anytime an update occurs to any resource.

kjstanding commented 7 months ago

I reorganized the placement of register_resource_update and modified the syntax/logic of said function after class today.

kjstanding commented 7 months ago

Commited changes that remove yielding on an internal resource get() with #5ee6de9. Can rollback if we need.

kjstanding commented 7 months ago

Removed condition in handle_internal_event to only report resource_update when the action is not a get

kjstanding commented 7 months ago

Removed some unnecessary comments from test_resource_stream.py