mirror of
https://github.com/hibiken/asynq.git
synced 2025-04-19 23:30:20 +08:00
feat: Add QueueName method to ResultWriter for retrieving task queue name
This commit is contained in:
parent
489e21920b
commit
ca52ef8c8d
5
asynq.go
5
asynq.go
@ -549,3 +549,8 @@ func (w *ResultWriter) Write(data []byte) (n int, err error) {
|
|||||||
func (w *ResultWriter) TaskID() string {
|
func (w *ResultWriter) TaskID() string {
|
||||||
return w.id
|
return w.id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// QueueName returns the name of the queue the task belongs to.
|
||||||
|
func (w *ResultWriter) QueueName() string {
|
||||||
|
return w.qname
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user