Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Building Blocks & Utilities

Building Blocks & Utilities

Prevent Duplicate Webhook Runs with a Redis Lock

When a webhook arrives, it checks and acquires a Redis lock before routing to one of three workflows, avoiding concurrent duplicate runs.

What it does

# Noop Workflow ## Overview Automated workflow: Noop Workflow. This workflow integrates 10 different services: webhook, stickyNote, wait, code, switch. It contains 20 nodes and follows best practices for error handling and security. ## Workflow Details - Total Nodes: 20 - Node Types: 10 - Error Handling: ✅ Implemented - Security: ✅ Hardened (no sensitive data) - Documentation: ✅ Complete ## Node Breakdown - END: noOp - Workflow 1: set - Workflow 2: set - Workflow 3: set - Incoming Webhook Data: webhook - Fetch Webhook Data & Declare lockValue: code - Check Redis Lock: redis - Acquire Redis Lock: redis - redisLock existence boolean: if - redisLock acquired booleans: if - ... and 10 more nodes ## Usage Instructions 1. Configure Credentials: Set up all required API keys and credentials 2. Update Variables: Replace any placeholder values with actual data 3. Test Workflow: Run in test mode to verify functionality 4. Deploy: Activate the workflow for production use ## Security Notes - All sensitive data has been removed or replaced with placeholders - Error handling is implemented for reliability - Follow security best practices when configuring credentials ## Troubleshooting - Check error logs if workflow fails - Verify all credentials are properly configured - Ensure all required services are accessible

The steps

  1. END
  2. Workflow 1
  3. Workflow 2
  4. Workflow 3
  5. Incoming Webhook Data
  6. Fetch Webhook Data & Declare lockValue
  7. Check Redis Lock
  8. Acquire Redis Lock
  9. redisLock existence boolean
  10. redisLock acquired booleans
  11. Poll for lock
  12. duplicateWebhook boolean
  13. Discard Redis Lock
  14. Workflow Switch

24 steps in total.

Similar automations