Skip to content

feat: add optional webhook callbacks for job completion#90

Merged
user1303836 merged 1 commit intomainfrom
feature/job-webhooks
Feb 18, 2026
Merged

feat: add optional webhook callbacks for job completion#90
user1303836 merged 1 commit intomainfrom
feature/job-webhooks

Conversation

@user1303836
Copy link
Owner

Summary

  • Adds optional callback_url field to IngestRequest, NormalizeRequest, and batch variants
  • When a job completes (success or failure), POSTs a JSON payload to the callback URL with {job_id, state, wallet, chain, message}
  • Fire-and-forget delivery with 10s timeout; errors logged but don't affect job status
  • URL validation rejects non-HTTP(S) schemes
  • 9 new tests covering validation, acceptance, and backwards compatibility

Test plan

  • cargo fmt --all --check clean
  • cargo clippy --workspace --all-targets -- -D warnings clean
  • All 159 tests pass
  • cargo audit clean (bytes upgraded, audit.toml for transitive deps)

Adds an optional callback_url field to IngestRequest and NormalizeRequest.
When provided and the job completes (success or failure), a JSON payload
is POSTed to the URL with job_id, state, wallet, chain, and message.

Fire-and-forget with 10s timeout; errors are logged but do not affect
job status. URL validation rejects non-HTTP(S) schemes.
@user1303836 user1303836 merged commit 235e5ef into main Feb 18, 2026
5 checks passed
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