mbreit / pg_jobs Goto Github PK
View Code? Open in Web Editor NEWSimple ActiveJob queue for PostgreSQL using LISTEN/NOTIFY
License: MIT License
Simple ActiveJob queue for PostgreSQL using LISTEN/NOTIFY
License: MIT License
Rails uses two different queues by default: default
and mailers
. We should be able to execute jobs in both queues with one worker.
Right now, we always wait a fixed number of seconds, if there is no job scheduled now. That means that it may take up to this number of seconds until a scheduled job is picked up. If we calculate the number of seconds until the next scheduled job (and use the configured timeout if it is smaller), then we should be able to run scheduled jobs without a delay.
If you really insist on the Rails logger use at least something like
module PgJobs
mattr_reader :logger
self.logger
@logger ||= Rails.logger # or maybe even rather ActiveJob::Base.logger
end
โฆ
end
Because then people can still override it if they need.
Besides from that: thank you for making pg_jobs
! ๐
I tried to add the gem in rails 7 but it's throwing error like rails 5 only supported like that . can you please have a look on it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.