mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #269] [FEATURE REQUEST] Expose raw data of payload #105
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#105
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kamatama41 on GitHub (May 3, 2021).
Original GitHub issue: https://github.com/hibiken/asynq/issues/269
Originally assigned to: @hibiken on GitHub.
Is your feature request related to a problem? Please describe.
Encoding / decoding task parameters is too much to write especially when task has many parameters, so I'd like to convert task parameters into a struct via another library (assuming mitchellh/mapstructure). In order to do that, I need the raw data of Payload when decoding params.
example
Describe the solution you'd like
Describe alternatives you've considered
Additional context
@hibiken commented on GitHub (May 3, 2021):
@kamatama41, thank you for opening this issue!
I'm actually updating the API in the next version:
New API takes arbitrary array of bytes as payload.
What this means is that you can write code like this:
I'm actively working on the feature, and should be able to release it in a few more weeks 👍
@kamatama41 commented on GitHub (May 4, 2021):
Got it, I'm looking forward to that 😃