You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`client` - If you need to override the Cloud Tasks client, pass the client here. (eg: changing credentials, transport etc)
199
202
200
-
### Task level default options
203
+
####Task level default options
201
204
202
205
Usage:
203
206
@@ -225,15 +228,15 @@ def mySimpleTask():
225
228
return {}
226
229
```
227
230
228
-
### Delayer Options
231
+
####Delayer Options
229
232
230
233
Usage:
231
234
232
235
```python
233
236
mySimpleTask.options(...).delay()
234
237
```
235
238
236
-
All options from above can be overriden per call (including TaskRouteBuilder options like `base_url`) with kwargs to the `options` function before calling delay.
239
+
All options from above can be overriden per call (including DelayedRouteBuilder options like `base_url`) with kwargs to the `options` function before calling delay.
We might need to override things in the task being sent to Cloud Tasks. The `pre_create_hook` allows us to do that.
248
268
249
269
Some hooks are included in the library.
250
270
251
-
-`oidc_task_hook` / `oidc_scheduler_hook` - Used to pass OIDC token (for Cloud Run etc).
252
-
-`deadline_task_hook` / `deadline_scheduler_hook` - Used to change the timeout for the worker of a task. (PS: this deadline is decided by the sender to the queue and not the worker)
271
+
-`oidc_delayed_hook` / `oidc_scheduled_hook` - Used to pass OIDC token (for Cloud Run etc).
272
+
-`deadline_delayed_hook` / `deadline_scheduled_hook` - Used to change the timeout for the worker of a task. (PS: this deadline is decided by the sender to the queue and not the worker)
253
273
-`chained_hook` - If you need to chain multiple hooks together, you can do that with `chained_hook(hook1, hook2)`
0 commit comments