fix(artifact_handler): resolve webhook errors, await message delivery, and sync job statuses - #239
Closed
Tharickv75 wants to merge 15 commits into
Closed
Tharickv75 wants to merge 15 commits into
Tharickv75 wants to merge 15 commits into
Conversation
- Updated `register_job` to fail the ingest if the reverse-index cannot be saved, preventing jobs from getting stuck in a queued state. - Enhanced the notify webhook to reload actions from the database before job lookups, log unknown jobs, and return a 503 status for retries. - Introduced `_persist_job_index` method to handle job index persistence with error logging. - Added `confirm_artifact_imported` method to delete retained jvforge artifacts after successful pull-imports. - Implemented job status updates in the conversation vault for better tracking of pending jobs.
- Updated the artifact handler to await channel sends for WhatsApp/Messenger notifications, preventing Lambda from freezing during send operations. - Introduced new methods to manage job notifications and reverse-index entries, ensuring proper job status updates and retries on failures. - Added extensive logging for better traceability of message sending failures and job processing. - Updated tests to verify the new notification behavior and error handling.
Co-authored-by: Cursor <cursoragent@cursor.com>
…pshot Register the jvforge import callback on the live FastAPI app so Lambda no longer 404s after processing. Co-authored-by: Cursor <cursoragent@cursor.com>
…webhook - Added detailed warning logs for various failure scenarios in the artifact handler's notify webhook, including webhook URL minting and job ID processing. - Updated the remounting logic to log the status of live routes and potential 404 issues. - Improved the handling of API key checks and missing parameters in the notify route. - Ensured consistent logging levels across the artifact handler for better traceability.
…iming logs Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
- Updated artifact handler to mint API keys with a glob pattern for notify endpoints, allowing for cross-agent usage without 403 errors.
- Changed PageIndex webhook path from `/api/pageindex_retrieval_interact_action/interact/webhook/{agent_id}` to `/api/pageindex/interact/webhook/{agent_id}` to streamline interactions.
- Enhanced tests to verify new webhook URL generation and key minting behavior, ensuring proper permissions and endpoint scoping.
Co-authored-by: Cursor <cursoragent@cursor.com>
- Reformatted context manager in `test_pageindex_llm_webhook_mints_new_path` and `test_pageindex_llm_webhook_remints_legacy_prefix` for better clarity and maintainability. - Ensured consistent structure across test cases for improved readability.
… bump version to 0.1.8rc15-dev6
- Removed excessive warning logs in the artifact handler, replacing them with error logs for critical failures to improve clarity and severity distinction. - Updated the version in `version.py` to 0.1.8rc15 and adjusted Dockerfile to clone from the main branch. - Modified GitHub Actions to trigger on the main branch for version bumps.
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.
Summary
This PR resolves critical notification and execution issues within the artifact handler workflow.
Key changes:
/api/artifact_handler_action/notify/*) and registered first-party routes early to eliminate 403 and 404 errors on Lambda.queued.DELETE /v1/artifacts/{job_id}.