2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-04-18 23:00:20 +08:00

feat: Add QueueName method to ResultWriter for retrieving task queue name

This commit is contained in:
chuongtran 2025-03-01 11:43:33 +07:00
parent 489e21920b
commit ca52ef8c8d

View File

@ -549,3 +549,8 @@ func (w *ResultWriter) Write(data []byte) (n int, err error) {
func (w *ResultWriter) TaskID() string {
return w.id
}
// QueueName returns the name of the queue the task belongs to.
func (w *ResultWriter) QueueName() string {
return w.qname
}