brandoncarl / taskco

TaskCo is a Redis-backed node.js library for creating background jobs, placing them on multiple queues, and processing them later.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When multiple connections are needed for a command, locks occur

brandoncarl opened this issue · comments

For example, in Task#save, the uid function may need to search for a task to ensure it doesn't exist before saving. Previously, the "find" function used its own connection. However, this can create conditions where you have circular locks in place.