This pull request addresses the memory-related issues identified in #577 by significantly enhancing the task enqueueing code.
Key improvements:
Refactored helper methods: The helper method responsible for enqueuing tasks has been updated to send only document URLs instead of entire byte objects. This substantially reduces memory usage, particularly for large documents.
The task code has been updated to handle document URLs effectively.
This pull request addresses the memory-related issues identified in #577 by significantly enhancing the task enqueueing code.
Key improvements: