New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

beanstalk_farmer

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beanstalk_farmer

  • 0.3.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Beanstalk Farmer

Farmer is a simple library that helps you manage your Beanstalk job queue. Its API is heavily inspired by Stalker, to help you get done as quickly as possible, but whilst allowing you to use plain old Ruby classes to ensure testability.

Setting up Jobs

Jobs are handled by any object whose instances respond to a #call method, à la Rack (e.g. Procs, procss). The payload of the job will be passed into the arguments of this method. Bear in mind that the payload for a Beanstalk job is de-serialized JSON.

By default all jobs will be deleted from the Beanstalk queue once completed. This can be configured and changed by returning an Array of arguments from the #call method. The first argument is expected to be the name of the method you wish to invoke on a job (see Beanstalk::Job). All remaining arguments will be passed to the named method.

For usage examples, see the examples directory in the source code.

Development

Shout Outs

Many thanks to nulayer.

FAQs

Package last updated on 28 Oct 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc