Skip to content

Process Monitor: Mark process status in DB - #170

Merged
iLLiCiTiT merged 6 commits into
developfrom
enhancement/mark-process-status
Aug 18, 2026
Merged

Process Monitor: Mark process status in DB#170
iLLiCiTiT merged 6 commits into
developfrom
enhancement/mark-process-status

Conversation

@iLLiCiTiT

@iLLiCiTiT iLLiCiTiT commented Aug 17, 2026

Copy link
Copy Markdown
Member

Changelog Description

Store status of a process into DB to avoid re-check of running applications (active/inactive).

Additional review information

The changes were based on #156 but instead of adding a limit it does mark a process in DB with the process status. By default each process is marked as active and it has to be set as inactive on refresh. Once it is marked as inactive it does not check if the process is alive which does enhance the speed of the monitor a lot.

This does change schema of the DB but I would say it is very reliable way how to deal with the slowsness issue, even for future.

WARNING

This does actually change schema of the sqlite database table, it might not be backwards compatible in case this is not merged.

Testing notes:

  1. Use current develop and create a lot of process entries in the process monitor -> that should slowdown the UI.
  2. Run process monitor with this PR.
  3. The first open will be probably still slow.
  4. The next open will be a lot faster.

@iLLiCiTiT iLLiCiTiT added the type: enhancement Improvement of existing functionality or minor addition label Aug 17, 2026
@iLLiCiTiT iLLiCiTiT self-assigned this Aug 17, 2026
@iLLiCiTiT iLLiCiTiT changed the title Process Monitor: Mark process status into DB Process Monitor: Mark process status in DB Aug 18, 2026

@MustafaJafar MustafaJafar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My process monitor has a lot of entries. The process monitor window still lags.

@iLLiCiTiT

iLLiCiTiT commented Aug 18, 2026

Copy link
Copy Markdown
Member Author

My process monitor has a lot of entries. The process monitor window still lags.

I think it needs combination of this and #171 . Created branch enhancement/bomb which combine them.

@MustafaJafar MustafaJafar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works pretty well along #171

# Conflicts:
#	client/ayon_applications/process.py
@iLLiCiTiT
iLLiCiTiT merged commit 8ec08ef into develop Aug 18, 2026
1 check passed
@iLLiCiTiT
iLLiCiTiT deleted the enhancement/mark-process-status branch August 18, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement Improvement of existing functionality or minor addition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants