Enhancement: Add Support for HTTP-Based Failure Notifications #4
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: nick/753-Data-Sync#4
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Add support to 753 Data Sync for sending a push-style HTTP POST request when a task fails. This feature will allow the script to integrate with external automation tools (e.g., Microsoft Power Automate) and send real-time failure notifications (such as email alerts).
Proposed Behavior
When any part of the sync task fails, the script should:
New Environment Variables
SYNC_NOTIFY_ON_FAILUREtrue, the script will send a notification when a task fails.SYNC_FAILURE_NOTIFY_URLPayload Example
On failure, the script will send a JSON payload like the following:
Benefits
Implementation Notes
requestsmodule to perform the HTTP POST.try/exceptblock so it doesn't interrupt error handling or logging logic.datetime.utcnow().isoformat().