Comments (10)
Sorry, I tried to reproduce this bug again and everything works now, so I dont remember precisely what it was.
This is my current working configuration"
I setup schedule in sidekiq.rb initializer at bottom of file:
Sidekiq.schedule = YAML.load_file("config/schedule.yml")
config/schedule.yml
authenticom_daily_files_import:
cron: "0 4 * * *"
class: AuthenticomDailyFilesImportWorker
queue: default
check_alerts:
cron: "0 2 * * *"
class: CheckAlertsWorker
queue: default
I'll close this issue and start feature request to adding button for manually enqueueing jobs through web ui
from sidekiq-scheduler.
Could you add more information please.
For example Gemfile.lock
And how do you load the sidekiq (using be sidekiq or from rails)
Thanks
from sidekiq-scheduler.
I'm actually having this issue as well. I can watch my console and see the job(s) run at the correct time but it would definitely be helpful to have the web ui populated to get an overview (because we have lots of jobs!).
On our production and staging servers, Sidekiq is started by Capistrano (v2.x) commands. Locally, on which I am currently working, I start Sidekiq by firing it up in a terminal. Also, locally, I'm just testing with a single worker/job to be scheduled.
newsletter_worker:
cron: "5,20,35,50 * * * *"
class: NewsletterWorker
queue: default
description: "This job grabs and assembles newsletters scheduled to go out 6 hours from when it runs."
What information could I supply (Gemfile.lock attached) to help better?
Thank you!
from sidekiq-scheduler.
@imageaid Could you send me the sidekiq config and how do you start sidekiq?
Thanks
from sidekiq-scheduler.
Sidekiq config details follow (let me know if you need anything else!):
Sidekiq initializer
Sidekiq.configure_server do |config|
config.error_handlers << Proc.new { |ex,ctx_hash| Airbrake.notify(ex, ctx_hash) }
config.redis = { url: 'redis://localhost:6379/1' }
end
Sidekiq.configure_client do |config|
config.redis = { url: 'redis://localhost:6379/1' }
end
Sidekiq YML
:verbose: true
:concurrency: 5
:pidfile: tmp/pids/sidekiq.pid
:timeout: 300
:queues:
- [critical, 2]
- default
staging:
:concurrency: 5
production:
:concurrency: 15
Start
bundle exec sidekiq
scheduler.rb
require 'sidekiq/scheduler'
Sidekiq.schedule = YAML.load_file(File.expand_path('../../../config/scheduler.yml',__FILE__))
Thank you!
Running Sidekiq 4.0.1 and redis 3.0.4
from sidekiq-scheduler.
Could you try to change the scheduler.rb to the following
require 'sidekiq/scheduler'
Sidekiq.configure_server do |config|
config.on(:startup) do
Sidekiq.schedule = YAML.load_file(File.expand_path('../../../config/scheduler.yml',__FILE__))
Sidekiq::Scheduler.load_schedule! # This will retrigger the loading stage
end
end
Anyway I think is better to include a schedule key on the sidekiq.yml with the content of the scheduler.yml. With this approach you don't need to reload the schedule.
Please let me know if this help you.
from sidekiq-scheduler.
YOU. ROCK!
Reloading the schedule was the trick. Popped up in the UI right away.
Thanks, so much, not only for the help but also the gem :)! Happy New Year!
from sidekiq-scheduler.
Thank you for using the gem. I glad that you like it :D
from sidekiq-scheduler.
Happy New Year :D
from sidekiq-scheduler.
Sidekiq::Scheduler.load_schedule!
still works when this issue occurs. Just upgraded to a multi-host setup which I assumed caused this to start happening to me. Thank you!
from sidekiq-scheduler.
Related Issues (20)
- Did sidekiq-scheduler 5.0.0 add a Rails dependency? HOT 3
- Raises an exception when rufus_scheduler_options is nil by default HOT 3
- Could not find gem 'sidekiq-scheduler (= 5.0.1)' with platform 'arm64-darwin-21' HOT 1
- Sidekiq version requirement HOT 1
- Run job multiple times, but never at the same time HOT 3
- Uppercase character in header name: Cache-Control
- Sidekiq 7.1 warns when deprecated Redis commands are used
- Cron expression with day of month does not work HOT 4
- Support for Ruby 3.0 and deconstruct Hashes as keyword arguments. HOT 5
- Move away from deprecated Redis commands HOT 2
- undefined method `next_time' for nil:NilClass HOT 5
- re-use Sidekiq Rack::Static instance for assets
- RedisManager does not appear to be updating in test env HOT 6
- Sidekick (docker) deprecation warning HOT 1
- UI not loading on heroku HOT 7
- Error handler threw an error HOT 2
- [feature request] environment specific schedules HOT 1
- Recommend Sidekiq::Job instead of Sidekiq::Worker HOT 1
- How to test that sidekiq.yml is *correct*? HOT 3
- SidekiqScheduler::Manager enormous inspect output HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sidekiq-scheduler.