
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Do things later with queue_classic.
Add this line to your application's Gemfile:
gem "queue_classic-later"
And then execute:
$ bundle
Or install it yourself as:
$ gem install queue_classic-later
First, follow the queue_classic setup directions.
NOTE for Ruby 1.8.7: You'll also need to install the json
gem--but you really should upgrade to a newer version of ruby, it's no longer being maintained.
QC::Later has database setup to do, much like queue_classic itself. Use the same process suggested by the queue_classic
directions to run QC::Later::Setup.create
in a database migration or similar.
You'll need to periodically call QC::Later.tick
, such as via a
clock process. Calling it every 5-10
seconds is probably sufficient.
QC::Later adds two methods to QC::Queue
:
enqueue_in(seconds, method, *args)
: Like enqueue
, but wait seconds
before enqueueing the workenqueue_at(time, method, *args)
: Like enqueue_in
, but wait until time
before enqueueing the workHere's an example:
# Enqueue this in 30 seconds
QC.enqueue_in(30, "Kernel.puts", "hello world")
# Enqueue this at a specific time
QC.enqueue_at(Time.new(2012, 10, 13, 12, 34, 56), "Kernel.puts", "hello world")
QC::Later.tick
will enqueue these jobs to be worked by your worker(s) at the appropriate time.
Heavily inspired by resque-scheduler.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that queue_classic-later 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
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.