Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pihc opened this issue Sep 11, 2024 · 3 comments
Open

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

pihc opened this issue Sep 11, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@pihc
Copy link

pihc commented Sep 11, 2024

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.

@pihc pihc added the enhancement New feature or request label Sep 11, 2024
@Joker666
Copy link

Joker666 commented Oct 6, 2024

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

@pihc
Copy link
Author

pihc commented 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.

@kamikazechaser
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants