-
Notifications
You must be signed in to change notification settings - Fork 19
Implementing cleanup of NodeODM tasks #658
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
base: dev
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
spwoodcock
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a pretty reasonable approach to me!
Two ways of testing:
1 Connect an ODM instance and run the processing manually. View the log outputs etc to confirm.
2. e2e tests would be excellent, as you mention, but I'm not sure we have this all in place, and is probably outside the scope of this PR. If you have time to dabble with an e2e test setup (perhaps using playwright), then feel free to try! π
So I tried this method, To me, I feel like the code logic makes sense, but it's just the testing configuration preventing seeing the log outputs. |
Just wanted to bump this message |
|
Apologies - I thought I would have time to test this myself, but under too much time pressure. We need to test locally, as a big change was just merged to dev that we probably can't afford to mix with this right now. The key is that there are no NodeODM instances attached to the default compose config. If you wish to test the processing, I would suggest adding a nodeodm container as part of compose.test.yaml and then updating your env to use the compose service name
|
No worries, thank you for clarifying! I'll have time later this week to work on this again and will follow your suggestions on testing, and provide updates when I do so! |
|
Just wanted to add a quick update since it's been a while: |
|
Thank you @allisonsibrian !! |
What type of PR is this? (check all applicable)
Related Issue
Adds: Cleanup NodeODM job after processing is complete #641
Describe this PR
This PR implements the automatic cleanup on the NodeODM server after the processing job is completed or fails.
I added a call to task.remove() within the finally block of the process_assets_from_odm function for the cleanup process.
Alternative Approaches Considered
I attempted different ways to test the changes locally doing end-to-end testing, since it's easier to track logs, but encountered some environment configuration issues:
403 Forbiddenerror, which prevented my log messages from appearing in the backend logs to actually check if cleanup process occurred.I'm unable to confirm changes because of these issues, and am just creating this as a draft PR to see if the CI tests work or to solicit advice on addressing the test issues above.
Review Guide
I feel like end-to-end testing seems like the right approach to confirm these changes (let me know if I am mistaken or if an alternate testing method is better in this case):
- Attempting to delete task {odm_task_id} from NodeODM.
- Successful attempt at deleting task {odm_task_id} from NodeODM.
-Verify the task no longer appears in the NodeODM UI list.
Checklist before requesting a review
[optional] What gif best describes this PR or how it makes you feel?