Skip to content

Many locked tasks in ready queue

The Mate has started a run but instead of moving the tasks to other queues, it just keeps locking more and more tasks.

TLDR: Your script does not close the tasks

Errors in the script where you dont report back to Anymate using Solved, Manual, Retry or Error.

Infrastructure, servers, core systems etc are down.

If the behavior is inconsistent on the same paths in your script it may be trouble in reaching the API due to firewalls or proxies.

Why is this a problem?

Anymate is designed to uphold a 'no task left behind' philosophy in order to keep your automation stable and trustworthy for business. This means that Anymate expects you to always tell us what happened with every task, and if we dont hear from the script we expect it to be a critical error in the script or in infrastructure. We do allow a Mate account to have multiple tasks locked because it allows for solving multiple tasks at once by threading and due to these two conditions you observe this problem.

Troubleshooting

This behavior is a warning for scripts that are not complete. You may have certain paths where you actually dont tell Anymate what happened with the task.

  • Check if your infrastructure, servers etc are up
  • Check that every path in your script ends up in either Solved, Manual, Retry or Error.
  • Check your script for runtime errors. Use the tasks that made the error for debugging.
  • Check with your IT department on how your firewall/proxy setup may block API calls

Settings and Mitigation

It is by far the best to make sure that you close all tasks in order to have good architecture.

If this is not possible, you have some options:

Disable Stop Mate if Task is not Closed right in Error Handling.

This means that you can keep running the script even though you encounter this error.

Set up Allow for Mates to retry tasks.

If retries are allowed Anymate unlocks the tasks after a couple of hours and counts it as a Retry, so the task stays in Ready.

If retries are not allowed or retry limit is exceeeded, the task goes to Manual. You should agree with business on what to do with these on a day to day basis.