Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move some TQ triggers under new namespace. (#1069)
Move all task queue related API under newly formed `tasks` package. Task queue function are now under `tasks` namespace: ``` export const factorize = functions.tasks.taskQueue({ rateLimits: { maxBurstSize: 2, maxConcurrentDispatches: 1, maxDispatchesPerSecond: 1, }, retryConfig: { maxAttempts: 100, maxRetrySeconds: 1000, maxBackoffSeconds: 20, maxDoublings: 10, minBackoffSeconds: 0.1, } }).onDispatch((data, context) => { deducePrivateKey(data.publicKey); }); ``` Same goes for handler namespace. Few other changes: 1) Add probably-forgotten `maxRetrySeconds` option for task queues. 2) Remove `maxBurstsize` option since it's outputonly.
- Loading branch information