Skip to content

Improve: Enhance Celery upload task with error handling, logging, and cleanup..#85

Open
Krushna-Pisal wants to merge 1 commit intoindictechcom:masterfrom
Krushna-Pisal:improve/celery-error-handling
Open

Improve: Enhance Celery upload task with error handling, logging, and cleanup..#85
Krushna-Pisal wants to merge 1 commit intoindictechcom:masterfrom
Krushna-Pisal:improve/celery-error-handling

Conversation

@Krushna-Pisal
Copy link
Copy Markdown

This PR improves the robustness and reliability of the Celery upload task.

Changes:

  • Added request timeouts to prevent hanging API calls
  • Used response.raise_for_status() for proper HTTP error handling
  • Introduced structured logging for better debugging
  • Improved error handling for API and unexpected failures
  • Ensured temporary files are cleaned up after upload
  • Used context manager for safe file handling

These changes enhance stability and make debugging easier in production environments.

… cleanup

This PR improves the robustness and reliability of the Celery upload task.

Changes:

* Added request timeouts to prevent hanging API calls
* Used response.raise_for_status() for proper HTTP error handling
* Introduced structured logging for better debugging
* Improved error handling for API and unexpected failures
* Ensured temporary files are cleaned up after upload
* Used context manager for safe file handling

These changes enhance stability and make debugging easier in production environments.
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.

1 participant