[GH-ISSUE #915] [FEATURE REQUEST] can you open the attribute opts of task #2484

Open
opened 2026-03-15 20:38:02 +03:00 by kerem · 3 comments
Owner

Originally created by @pihc on GitHub (Sep 11, 2024).
Original GitHub issue: https://github.com/hibiken/asynq/issues/915

Originally assigned to: @hibiken on GitHub.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

image

image

I hope to use some attributes defined in the task within the EnqueueContext method. However, because the opts of the task are not accessible, it is inconvenient for me to use them.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Make the opts attribute of the task accessible.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Originally created by @pihc on GitHub (Sep 11, 2024). Original GitHub issue: https://github.com/hibiken/asynq/issues/915 Originally assigned to: @hibiken on GitHub. **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] ![image](https://github.com/user-attachments/assets/789ef493-1086-4447-9f31-0cf39181b66b) ![image](https://github.com/user-attachments/assets/4564504a-9edc-4344-b599-30645cf15ec3) I hope to use some attributes defined in the task within the EnqueueContext method. However, because the opts of the task are not accessible, it is inconvenient for me to use them. **Describe the solution you'd like** A clear and concise description of what you want to happen. Make the opts attribute of the task accessible. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. **Additional context** Add any other context or screenshots about the feature request here.
Author
Owner

@Joker666 commented on GitHub (Oct 6, 2024):

Task doesn't have any opts. What attributes are you looking for?

<!-- gh-comment-id:2395538902 --> @Joker666 commented on GitHub (Oct 6, 2024): `Task` doesn't have any `opts`. What attributes are you looking for?
Author
Owner

@pihc commented on GitHub (Oct 24, 2024):

Task doesn't have any opts. What attributes are you looking for?

image
I want to change this property to Opts. I want to be able to override the initially defined properties when making dynamic calls.

<!-- gh-comment-id:2434151106 --> @pihc commented on GitHub (Oct 24, 2024): > `Task` doesn't have any `opts`. What attributes are you looking for? ![image](https://github.com/user-attachments/assets/37493457-bef5-4ac3-988d-299db0d8928b) I want to change this property to Opts. I want to be able to override the initially defined properties when making dynamic calls.
Author
Owner

@kamikazechaser commented on GitHub (Oct 25, 2024):

You can already pass in functional options to a task. As many as you want.

<!-- gh-comment-id:2437058906 --> @kamikazechaser commented on GitHub (Oct 25, 2024): You can already pass in functional options to a task. As many as you want.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#2484
No description provided.