Metadata not kept on pop() for job
juriansluiman opened this issue · 4 comments
juriansluiman commented
bakura10 commented
Metadata is preserved in SQS: https://github.com/juriansluiman/SlmQueueSqs/blob/master/src/SlmQueueSqs/Queue/SqsQueue.php#L196
bakura10 commented
Haaa... I see... any metadata you may add when creating the job is not preserved. I see. But one question: what kind of "metadata" would you like to preserve when popping the job? If you want to transfer data, can't you use the content instead? I think metadata is only data that is added by the queue system (like id, receipt handle, any queue specific variables...) ?
juriansluiman commented
I was using metadata for counting how many retries the job has had: Webador/SlmQueueBeanstalkd#26 (comment)
Personally metadata felt more the appropriate place than content.