UN-2942 [HOT-FIX] API deployments now properly clean up execution directories after completion#1635
Merged
ritwik-g merged 1 commit intoNov 3, 2025
Conversation
…ries after completion
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
ritwik-g
approved these changes
Nov 3, 2025
This was referenced Nov 3, 2025
ritwik-g
pushed a commit
that referenced
this pull request
Nov 3, 2025
…atibility (#1637) * Fix/un 2910 fix prevent task duplication while warm shutdown heartbeatkeeper and resolve sigsegv issues (#1616) * UN-2910 [FIX] Prevent task duplication during Kubernetes warm shutdown with HeartbeatKeeper Implemented HeartbeatKeeper bootstep to maintain RabbitMQ connection during Celery warm shutdown, preventing task requeuing and duplication during Kubernetes rolling updates and graceful pod terminations. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * structuretool-for-testing * handling envs * sonar issue addressing * forksafe gcs and gdrive connectors * updated grpc imports * fork safty in shared internal client session * reverted forksafty fropm baseclient, addressed coderabbitai comments * minor changes * reverted structure tool changes that was changed for tetsing * plugin registry changes for .so file comaptibility * added default value for heartbeat --------- Co-authored-by: Claude <noreply@anthropic.com> * Fix: Added InternalAPIAuthMiddleware to Django middleware stack (#1628) * UN-2942 [HOT-FIX] API deployments now properly clean up execution directories after completion (#1635) UN-2942 [FIX] API deployments now properly clean up execution directories after completion * UN-2942 [FIX] Fix API deployment directory cleanup and MinIO compatibility (#1636) * Added boto3 version pin to match backend * Added uvlock * fix execution directory for api --------- Signed-off-by: ali <117142933+muhammad-ali-e@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What
process_batch_callback_apifunction inworkers/callback/tasks.pyWhy
_cleanup_execution_resources()already existed and worked correctly for ETL workflowsHow
cleanup_result = _cleanup_execution_resources(context)call after UI logs publishing (line 1574-1575)unstract/api/...) and workflow execution directory (unstract/execution/...)Can this PR break any existing features. If yes, please list possible items. If no, please explain why. (PS: Admins do not merge the PR without this section filled)
No, this PR cannot break existing features:
_cleanup_execution_resources()function that is already proven to work for ETL workflowsDatabase Migrations
Env Config
Relevant Docs
workers/ARCHITECTURE_DOCUMENTATION.mdworkers/callback/tasks.pyfunction commentsRelated Issues or PRs
Dependencies Versions
Notes on Testing
Testing Steps:
Screenshots
N/A - Backend/worker change with no UI impact
Checklist
I have read and understood the Contribution Guidelines.