gideonairex / disqueue-node Goto Github PK
View Code? Open in Web Editor NEWnode client for disqueue
node client for disqueue
How to parse body of the job (getJob API),now,it is ‘[object,object]’
When there are no jobs in the queue, data
in getJob
is undefined:
/Users/larlyn/projects/newlangs/disque/node_modules/disqueue-node/lib/commands-list/get-job.js:50
for ( var i = 0; i < data.length; ++i ) {
^
TypeError: Cannot read property 'length' of null
at null.callback (/Users/larlyn/projects/newlangs/disque/node_modules/disqueue-node/lib/commands-list/get-job.js:50:29)
at DisqueClient.sendReply (/Users/larlyn/projects/newlangs/disque/node_modules/disqueue-node/lib/disqueue-client.js:210:17)
at self.parser.execute (/Users/larlyn/projects/newlangs/disque/node_modules/disqueue-node/lib/disqueue-client.js:187:10)
at Socket.<anonymous> (/Users/larlyn/projects/newlangs/disque/node_modules/disqueue-node/lib/disqueue-client.js:77:15)
at emitOne (events.js:82:20)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:146:16)
at Socket.Readable.push (_stream_readable.js:110:10)
at TCP.onread (net.js:523:20)
disque is version disque 1.0-rc1
When instantiating a new Disqueue, and disqueue cannot be reached, the client does not emit the error
event
Any plans to support working?
https://github.com/antirez/disque#working-jobid
Realized it wasn't in product...
Allow a way to pass in a custom COUNT for the GETJOB command.
When I call disqueue.show(), the result is a 'raw' array where each odd-indexed element is a key, and each even-indexed element is the value. (I am not sure if the other commands return data in a similar format). It would be useful if disqueue-node automatically turned the raw, array response into an object hash that could be used easily
Current response:
result = [
'id'
'D-0ca28763-t8Tl5YL/P5+9vaJ6utmv7/e8-05a1',
'queue',
'my-disqueue',
'state',
'queued',
...
]
What I think it should be:
result: {
id: ''D-0ca28763-t8Tl5YL/P5+9vaJ6utmv7/e8-05a1',
queue: 'my-disqueue',
state: 'queued',
...
}
Looks like an issue with the version of hiredis that is referenced...
Add benchmarking for disqueue rpc
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.