Git Product home page Git Product logo

gmq's Issues

私信 dieat err processedat 均为空

processedat 应该记录 handler 从队列取出的时间戳
dieat 记录 handler 放入 failed 的时间戳
err 记录 handler 的返回的 error 上下文

CLI tool supports list messages and get message detail

list messages

./gmqcli.bin -listmsg <queueName> -state failed [-limit 10 -offset 10]

options required: -state
options optional: -limit -offset

get message detail

./gmqcli.bin -getmsg -i <msgId> -q <queueName>

options required: -i -q

NOTE: drop old -get option

ProcessMsg got unknown empty payload

debug logging ProcessMsg got unknown subtype -- uri -- queue=foo id=https://foo.bar/id/123/?fmt=json elapsed=0s

可能引起原因:github.com/giant-stone/gmq v0.0.15 版本实现局限。

相同 id 入队两次,并且设置忽略去重参数 gmq.OptIgnoreUnique(true)
消费队列时,第一次从 pending 获取 消息 id,从 detail hash 获取消息详情,消费会成功;
第二次由于第一次成功后,清空消息详情(含 payload ),因此第二次处理时,payload 为空 ,payload 中 subtype、uri 也为空。

解决方式二选一:
一、设置去重参数;
二、消费者加个全局中间件,判断 payload 为空则丢弃此消息。

实现内存存储 broker

  • 支持 macOS and Windows 平台
  • 补充文档
  • 执行测试时根据变量控制是否跳过 Redis broker 相关测试

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.