Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有多个作业在 Resque 的多个队列中运行。我的问题是,当一个队列运行大量作业时,它会占用我的其他队列。
如何让 Resque 运行并行队列但仍将每个队列一次限制为一个作业?
您可以为每个队列启动不同的工作人员。
为此,您必须在 QUEUE 环境变量上指定要处理的队列名称。
因此,如果您有 3 个队列,您将执行以下操作: