Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App watchdog / kill frozen apps #33

Open
b0xcat opened this issue May 18, 2024 · 0 comments
Open

App watchdog / kill frozen apps #33

b0xcat opened this issue May 18, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@b0xcat
Copy link
Contributor

b0xcat commented May 18, 2024

I was talking with @hughrawlinson and the question came up if we should somehow try to prevent apps from locking up the entire system if they get stuck somehow.

As a simple example, lets say we have an app that does something like this:

def update(delta):
   while True:
      pass

It would block the event loop and prevent the badge from doing anything else until it is reset.

Maybe we can spin up a thread with a watchdog somehow to prevent this? Or is this something we shouldn't worry about?

Perhaps asyncio wait_for could be used for app updates?

@npentrel npentrel added the enhancement New feature or request label Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants