Version 2: full support of the Beanstalkd protocol
This update brings full support of all beanstalkd commands to jackd
and ships a number of important bug fixes to the client. It's recommended that you upgrade to this version if you are on an older client.
Note: we did a major version bump from 1.x to 2.x because
executeCommand
andexecuteMultiPartCommand
have been removed.
Changes
- Added all remaining unimplemented job commands
reserve-job
- Added all remaining unimplemented peek commands
peek
,peek-ready
,peek-delayed
- And all remaining unimplemented YAML commands
stats
,stats-job
,stats-tube
,list-tubes
,list-tubes-watched
,list-tube-used
)
- The
bury
command can now accept a priority
Thanks to @edqallen for bringing these improvements to my attention.
Breaking changes from 1.x
executeCommand
andexecuteMultiPartCommand
removed
The original intent of the executeCommand
and executeMultiPartCommand
commands was to allow users to be able to execute any client command on beanstalkd. There could be cases where you'd want to do this if jackd
did not support certain commands or a new version of beanstalkd came out with new commands.
Now that jackd has full support of the beanstalkd protocol, these commands are not as useful. Additionally this library is designed to allow easy instrumentation of future commands, so supporting future versions is as simple as changing a couple of lines in the codebase.
As a result these commands have been removed.
getCurrentTube
will becomelistTubeUsed
in the future
getCurrentTube
is just list-tube-used
, so it's now deprecated.
Cheers!
As always if you have any questions/problems at all feel free to drop an issue.