Skip to content

Conversation

@bghira
Copy link
Owner

@bghira bghira commented Jan 18, 2026

This pull request adds progress tracking and webhook notification support to the caption extraction process in the get_all_captions function. When using the "huggingface" caption strategy, the system now sends real-time updates about the extraction stage, including progress and completion/failure statuses, which can be consumed by external systems or UIs.

Enhancements to caption extraction progress reporting:

  • Added logic to initialize and send progress updates via a webhook handler when the "huggingface" caption strategy is used. This includes sending lifecycle stage notifications at the start, during progress, on completion, and on failure. [1] [2]
  • Progress is tracked based on the number of processed images, with updates sent every 1% or at least every 100 images, and detailed status is included in each notification.

Error handling and robustness:

  • Implemented try/except/finally blocks to ensure that failure or completion notifications are always sent, even if an exception occurs during caption extraction.

@bghira bghira marked this pull request as ready for review January 18, 2026 23:55
@bghira bghira merged commit b80ec54 into main Jan 19, 2026
2 checks passed
@bghira bghira deleted the ux/lifecycle-events-extracting-captions branch January 19, 2026 00:45
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.

2 participants