
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Job queue system to run job with Docker
Barbeque is used on production at Cookpad.
Barbeque is a job queue system that consists of:
A job for Barbeque is a command you configured on web console. A message serialized by JSON and a job name are given to the command when performed. In Barbeque worker, they are done on Docker container.
For details, see Scalable Job Queue System Built with Docker // Speaker Deck.
Install barbeque.gem to an empty Rails app and mount Barbeque::Engine
.
And deploy it as you like.
You also need to prepare MySQL, Amazon SQS and Amazon S3.
Barbeque's enqueue API tries to be independent of MySQL by design.
Although that design policy, verifying the enqueued job is useful in some environment (such as sandboxed environment).
Passing BARBEQUE_VERIFY_ENQUEUED_JOBS=1
to the Web API server enables the feature that verifies the enqueued job by accessing MySQL.
$ rake barbeque:worker BARBEQUE_QUEUE=default
The rake task launches four worker processes.
Web API documentation is available at doc/toc.md.
barbeque_client.gem has API client and ActiveJob integration.
Barbeque executor can be customized in config/barbeque.yml. Executor is responsible for starting executions and getting status of executions.
Barbeque has currently two executors.
Barbeque::Executor::Docker starts execution by docker run --detach
and gets status by docker inspect
.
Barbeque::Executor::Hako starts execution by hako oneshot --no-wait
and gets status from S3 task notification.
You must configure CloudWatch Events for putting S3 task notification. See Hako's documentation for detail. https://github.com/eagletmt/hako/blob/master/docs/ecs-task-notification.md
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that barbeque demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
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.