- Added a new function to list consecutive failure streaks for workflows, allowing tracking of workflows that have failed multiple times in a row. - Integrated the consecutive failure data into the dashboard, displaying streaks and counts for better visibility of workflow health. - Created a dedicated FailuresPage to present detailed information about consecutive failures, enhancing user experience and monitoring capabilities. - Updated API endpoints and hooks to support the new failure tracking features, ensuring seamless data retrieval and display. This enhancement improves the ability to monitor and respond to workflow failures, contributing to overall system reliability.
24 lines
734 B
YAML
24 lines
734 B
YAML
name: detect example.com changes
|
|
description: |
|
|
Fetch example.com, fingerprint the response, and report whether it changed
|
|
since the previous run. Uses detect-url-changes with a transform that builds
|
|
a human-readable message into ctx.data.message.
|
|
scripts:
|
|
- script: detect-url-changes.js
|
|
config:
|
|
url: https://example.com/
|
|
outputVar: message
|
|
transform: |
|
|
data.hasChanges
|
|
? "example.com changed (fingerprint " & data.fingerprint & ")"
|
|
: "example.com unchanged since " & data.fingerprintAt
|
|
triggers:
|
|
- type: HTTP
|
|
method: POST
|
|
path: /detect-example
|
|
- type: cron
|
|
schedule: "* * * * *"
|
|
onConsecutiveFailures: 3
|
|
onFailureWorkflow: dev-zte-sms
|
|
enabled: false
|