twiliotwilio-taskrouter

Remove default_filter from Twilio TaskRouter


I've set up my workflows and taskqueues. Workflow looks like this.

{
  "task_routing": {
    "filters": [
      {
        "filter_friendly_name": "Dialpad",
        "expression": "flexOutboundDialerTargetWorker != null",
        "targets": [
          {
            "expression": "task.flexOutboundDialerTargetWorker == worker.contact_uri",
            "queue": "WQ044385bd3c00a98cc63c092d02e5b571",
            "timeout": 10
          }
        ]
      }
    ],
    "default_filter": {
      "queue": "WQ044385bd3c00a98cc63c092d02e5b571"
    }
  }
}

Task queue and workers are configured so that WQ044385bd3c00a98cc63c092d02e5b571 has available workers.

However, when I call the number, a task gets created, a reservation is made, but in the case that nobody os available, the task moves to the default_filterand it stays there forever.

What I want to do?


Solution

  • Turns out there's a visual option I missed located at:

    https://www.twilio.com/console/taskrouter/workspaces/WSXXX/workflows

    Scroll to bottom and set the DEFAULT QUEUE to None.