Skip to content

Commit 5216e71

Browse files
committed
improve documentation
1 parent 8146205 commit 5216e71

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,13 @@ We might need to override things in the task being sent to Cloud Tasks. The `pre
248248

249249
Some hooks are included in the library.
250250

251-
- `oidc_hook` - Used to work with Cloud Run.
252-
- `deadline_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)
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)
253253
- `chained_hook` - If you need to chain multiple hooks together, you can do that with `chained_hook(hook1, hook2)`
254254

255255
## Future work
256256

257257
- Ensure queue exists.
258-
- ✔️Integrate with [Cloud Scheduler](https://cloud.google.com/scheduler/) to replace celery beat.
259258
- Make helper features for worker's side. Eg:
260259
- Easier access to current retry count.
261260
- API Exceptions to make GCP back-off.

0 commit comments

Comments
 (0)