Commit c31cf60
authored
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.1 parent b9de399 commit c31cf60
File tree
28 files changed
+1353
-1101
lines changed- spec
- common/providers
- runtime
- v1/providers
- v2/providers
- alerts
- src
- common/providers
- providers
- v2
- providers
- v1
- v2
28 files changed
+1353
-1101
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
101 | 106 | | |
102 | 107 | | |
103 | 108 | | |
104 | 109 | | |
105 | 110 | | |
106 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
107 | 124 | | |
108 | 125 | | |
109 | 126 | | |
| |||
122 | 139 | | |
123 | 140 | | |
124 | 141 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
| 142 | + | |
| 143 | + | |
136 | 144 | | |
137 | 145 | | |
138 | 146 | | |
| |||
0 commit comments