Skip to content

fix: Run Windows Session cleanup at high priority.#173

Merged
ddneilson merged 1 commit intoOpenJobDescription:mainlinefrom
erico-aws:increase-cleanup-prio
Sep 19, 2024
Merged

fix: Run Windows Session cleanup at high priority.#173
ddneilson merged 1 commit intoOpenJobDescription:mainlinefrom
erico-aws:increase-cleanup-prio

Conversation

@erico-aws
Copy link
Copy Markdown
Contributor

What was the problem/requirement? (What/Why)

During session cleanup, the powershell Remove-Item command can get starved for cycles if there's another process consuming too much of the CPU.

What was the solution? (How)

Have the cleanup command run at a higher priority.

What is the impact of this change?

An important task, like session clean up, should be prioritized. This allows clean up to happen when it otherwise might not.

How was this change tested?

This change was tested in the context of a Deadline Cloud Worker Agent. My CMF was running a CPU heavy workload. I observed in the session logs that clean up completed quickly during a cancelation. Prior to my change, a cancelation was taking > 5 min.

Was this change documented?

No

Is this a breaking change?

No.

Does this change impact security?

No.

@erico-aws erico-aws requested a review from a team as a code owner September 18, 2024 16:36
@erico-aws erico-aws force-pushed the increase-cleanup-prio branch from a688fbc to 75c9b36 Compare September 18, 2024 16:46
Comment thread src/openjd/sessions/_session.py
Comment thread src/openjd/sessions/_session.py
Copy link
Copy Markdown
Contributor

@epmog epmog left a comment

Choose a reason for hiding this comment

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

Looks good to me. Sounds like we have some future action items to update other actions, and potentially elsewhere. Ship it

Signed-off-by: Eric Osiowy <134728121+erico-aws@users.noreply.github.com>
@ddneilson ddneilson force-pushed the increase-cleanup-prio branch from 75c9b36 to aee54d1 Compare September 19, 2024 18:23
@ddneilson ddneilson enabled auto-merge (squash) September 19, 2024 18:23
@sonarqubecloud
Copy link
Copy Markdown

@ddneilson ddneilson merged commit 6fb09b5 into OpenJobDescription:mainline Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants