hibiken / asynq

Simple, reliable, and efficient distributed task queue in Go
MIT License
10k stars 714 forks source link

[FEATURE REQUEST] can you open the attribute opts of task #915

Open pihc opened 2 months ago

pihc commented 2 months ago

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.

Joker666 commented 1 month ago

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

pihc commented 3 weeks ago

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.

kamikazechaser commented 3 weeks ago

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