Firebase 队列中的重试逻辑

Retry logic in Firebase Queue

我在 node.js 应用程序中使用 fire-base 队列。我想知道,如果有任何可用的方法,队列可以重试并处理剩余的任务,以防在执行任何任务时发生错误。

根据documentation,您可以使用retries(默认为零)指定重试次数:

retries - The default spec doesn't retry failed tasks. When a task fails, if there are any remaining attempts, the queue will restart the task by setting the task's _state to its spec's start_state.