
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
SQS is a queueing system from Amazon. SQueeSe is a friendly wrapper around it in the style of Stalker or Minion.
From anywhere in your app:
require 'squeese'
Squeese.enqueue('email.send', :to => 'joe@example.com')
Squeese.enqueue('post.cleanup.all')
Squeese.enqueue('post.cleanup', :id => post.id)
In a standalone file, typically jobs.rb or worker.rb:
require 'squeese'
include Squeese
job 'email.send' do |args|
Pony.send(:to => args[:to], :subject => "Hello there")
end
job 'post.cleanup.all' do |args|
Post.all.each do |post|
enqueue('post.cleanup', :id => post.all)
end
end
job 'post.cleanup' do |args|
Post.find(args[:id]).cleanup
end
First, make sure you have your AWS secret keys configured.
$ export AWS_SECRET_ACCESS_KEY=[...]
$ export AWS_ACCESS_KEY_ID=[...]
Now get your squeese on:
$ sudo gem install squeese
Now squeese tight with a worker:
$ squeese jobs.rb
[Sat Apr 17 14:13:40 -0700 2010] Working 3 jobs :: [ email.send post.cleanup.all post.cleanup ]
Squeese will log to stdout as it starts working each job.
Filter to a list of jobs you wish to run with an argument:
$ squeese jobs.rb post.cleanup.all,post.cleanup
[Sat Apr 17 14:13:40 -0700 2010] Working 2 jobs :: [ post.cleanup.all post.cleanup ]
In a production environment you may run one or more high-priority workers (limited to short/urgent jobs) and any number of regular workers (working all jobs). For example, two workers working just the email.send job, and four running all jobs:
$ for i in 1 2; do squeese jobs.rb email.send > log/urgent-worker.log 2>&1; end
$ for i in 1 2 3 4; do squeese jobs.rb > log/worker.log 2>&1; end
NOTE: Filtering squeese jobs by worker is not yet supported!
Created by Peter van Hardenberg (sort of)
Heavily inspired by^W^Wderived from Minion and Stalker by Orion Henry and Adam Wiggins, respectively.
Released under the MIT License: http://www.opensource.org/licenses/mit-license.php
FAQs
Unknown package
We found that squeese demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.