2
0
mirror of https://github.com/hibiken/asynq.git synced 2026-05-23 18:05:31 +08:00

Add TaskID option to allow user to specify task id

This commit is contained in:
Ken Hibino
2021-09-11 21:11:04 -07:00
parent dbdd9c6d5f
commit 9e2f88c00d
4 changed files with 148 additions and 22 deletions

View File

@@ -11,6 +11,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `NewTask` takes `Option` as variadic argument
### Added
- `TaskID` option is added to allow user to specify task ID.
- `ErrTaskIDConflict` sentinel error value is added.
### Removed
- `Client.SetDefaultOptions` is removed. Use `NewTask` instead to pass default options for tasks.