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

fix: Removing VFS termination from sync_outputs #175

Merged
merged 6 commits into from
Feb 8, 2024

Conversation

natmatn
Copy link
Contributor

@natmatn natmatn commented Feb 7, 2024

This is a two part PR, with the change in the worker agent needing to be merged first
aws-deadline/deadline-cloud-worker-agent#149

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

Originally, the best place to terminate deadline VFS processes was in the output sync step. However, with the introduction of step-step dependent jobs, the deadline VFS instances were being terminated between tasks. This caused the jobs to fail as the expected asset roots were no longer mounted when multiple tasks were run in a step.

What was the solution? (How)

Moved the termination call from the deadline-cloud sync_outputs call to the deadline-cloud-worker-agent's session cleanup method.

What is the impact of this change?

Jobs using the "VIRTUAL" asset-loading-method will now support step-step dependencies

How was this change tested?

  • hatch run test
  • Manually confirmed on a CMF instance both step-step and regular jobs are supported

Was this change documented?

No

Is this a breaking change?

No, but without the corresponding change in deadline-cloud-worker-agent, session directories won't be properly cleaned up.

Signed-off-by: Nathan Matthews <natmatn@amazon.com>
@natmatn natmatn requested a review from a team as a code owner February 7, 2024 01:56
Signed-off-by: Nathan Matthews <natmatn@amazon.com>
Signed-off-by: Nathan Matthews <natmatn@amazon.com>
Copy link
Contributor

@marofke marofke left a comment

Choose a reason for hiding this comment

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

Thanks Nathan! 🚢 🦈

@natmatn natmatn merged commit ef782bf into mainline Feb 8, 2024
18 checks passed
@natmatn natmatn deleted the natmatn/vfs_cleanup branch February 8, 2024 23:22
YutongLi291 pushed a commit that referenced this pull request Feb 14, 2024
* fix: Removing VFS termination from sync_outputs

Signed-off-by: Nathan Matthews <natmatn@amazon.com>

* Adding session cleanup function to terminate fus3 processes

Signed-off-by: Nathan Matthews <natmatn@amazon.com>

* Fixing lint warning

Signed-off-by: Nathan Matthews <natmatn@amazon.com>

---------

Signed-off-by: Nathan Matthews <natmatn@amazon.com>
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