UNC任务回调 icon

UNC任务回调

UNC任务回调

Overview

This node acts as a webhook trigger for UNC task callbacks. It listens for POST requests at a specified path and validates incoming requests using a JWT authentication token. Upon receiving a valid request, it processes the task status and either resolves or rejects a cached task promise accordingly. This node is useful for workflows that need to handle asynchronous task completion notifications securely via webhooks.

Use Case Examples

  1. A workflow that triggers when an external system completes a task and sends a callback with the task status.
  2. A system that requires secure verification of incoming webhook requests using JWT tokens before processing task results.

Output

JSON

  • webhookResponse - Response message sent back to the webhook caller, indicating the result of processing the callback

Dependencies

  • Requires a JWT authentication credential to validate incoming webhook requests.

Troubleshooting

  • If the JWT token is missing or invalid, the node responds with a 403 status and an authentication challenge, preventing further processing.
  • If the task ID from the query parameters does not match any cached task, the webhook will not resolve or reject any task promise, potentially causing the workflow to wait indefinitely.

Discussion