Skip to content
Proud to collaborate with Microsoft for Startups

hook.expire-pending-events ​

Fail hook.receive-webhook runs stuck in PENDING_FORWARD past a threshold

Fail hook.receive-webhook runs stuck in PENDING_FORWARD past a threshold.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-hookredirect
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
workflow_run_idstringNo—DAG-stamped parent run id
older_than_secondsintegerNo—Age threshold in seconds (default 3600)
redirect_uuidstringNo—Restrict expiration to a specific redirect UUID
organization_uuiduuidNo—Restrict expiration to a specific organization
max_batchintegerNo—Maximum number of runs to expire per invocation

Output Schema ​

FieldTypeRequiredDefaultDescription
workflow_run_idstringNo—DAG-stamped parent run id
older_than_secondsintegerNo—Age threshold in seconds (default 3600)
redirect_uuidstringNo—Restrict expiration to a specific redirect UUID
organization_uuiduuidNo—Restrict expiration to a specific organization
max_batchintegerNo—Maximum number of runs to expire per invocation
stale_workflow_uuidslistNo——
failed_countintegerNo——
skipped_countintegerNo——
failure_reasonstringNo——
failed_stepjsonNo——
failed_layerjsonNo——
failed_at_statestringNo——
errorstringNo——
error_typestringNo——
error_messagestringNo——
successbooleanNo——
failed_atstringNo——
failure_typestringNo——
retried_fromstringNo——
retry_countintegerNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
scanningYesNo—scan—
failing_staleNoNo—fail_stale—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
scanningscanfailing_stale—
failing_stalefail_stalecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "hook.expire-pending-events",
  "initial_data": {
    "workflow_run_id": "value",
    "older_than_seconds": 123,
    "redirect_uuid": "value",
    "organization_uuid": "value"
  }
}