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

addon: show CPU usage + Email notifications #1341

Closed
pete1019 opened this issue May 11, 2023 · 5 comments
Closed

addon: show CPU usage + Email notifications #1341

pete1019 opened this issue May 11, 2023 · 5 comments

Comments

@pete1019
Copy link

Hi, would this be of interest? Should i provide a PR where the CPU Usage is also in diagnostic?

Had this issue where the CPU was at 3% but the project was still on working but it actually wasn't.
Think it was because there were pictures of a different project accidentally.

I thought of extending this with a plugin for email notification:

  • on finish
  • on error
  • on low threshold CPU usage for quite some minutes.

Also, a checkmark in diagnostic to auto-refresh every X seconds.

What do you think?

@pierotofy
Copy link
Member

It might be useful to have a CPU indicator, yes! But might be tricky to get an accurate value that is cross-platform without additional dependencies.

An e-mail plugin would be most interesting!

@Kathenae
Copy link
Contributor

@pierotofy I'm working on the email notification plugin right now, I've managed to find the plugin signal for when a task has finished processing, but there doesn't seem to be one for when a task has failed? Any idea if such a signal exists if no, do you know the main points where a task may fail to process so i can send the plugin signal?

@pierotofy
Copy link
Member

Yep, there's currently no "task_failed" signal. It could be added though. See app.plugins.signals.py and app.models.task.

@Kathenae
Copy link
Contributor

Kathenae commented May 16, 2023 via email

This was referenced May 18, 2023
@pierotofy
Copy link
Member

Done with #1343, #1344 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants