Giter Club home page Giter Club logo

Comments (10)

zedtux avatar zedtux commented on May 24, 2024 7

I'm using the latest version.

Actually, I found the issue an hour ago ... I was missing the require 'sidekiq-scheduler/web' in my config/routes.rb file, which adds me a new tab where I can see the scheduled tasks.

from sidekiq-scheduler.

elpic avatar elpic commented on May 24, 2024

I will take a look asap.

from sidekiq-scheduler.

cbetta avatar cbetta commented on May 24, 2024

Any luck? I got this working in production now but still not seeing my scheduled tasks

from sidekiq-scheduler.

cbetta avatar cbetta commented on May 24, 2024

Seems to me the main issue is this:

I run Rails and Sidekiq in 2 processes, using Procfile. Currently sidekiq-scheduler is only initialized in the sidekiq process, not the Rails process. This means that the schedule is never set, etc. I guess the schedule should be stored into Redis when the process starts, so the Rails app can load the same.

from sidekiq-scheduler.

cbetta avatar cbetta commented on May 24, 2024

FYI: Sidekiq.configure_server is never called in my Rails app.

from sidekiq-scheduler.

elpic avatar elpic commented on May 24, 2024

There are some PR that fixes that I will take a look at those.

from sidekiq-scheduler.

cbetta avatar cbetta commented on May 24, 2024
web: bundle exec je -v puma -C config/puma.rb
worker: bundle exec sidekiq

from sidekiq-scheduler.

elpic avatar elpic commented on May 24, 2024

In minutes I will upload a solution for this

from sidekiq-scheduler.

zedtux avatar zedtux commented on May 24, 2024

@elpic I'm sorry to come back on this, but you just closed it, without the promised solution :)

I'm using Docker, and I have the same issue as @cbetta.
I can see in the logs that Sidekiq is loading the scheduled jobs:

2017-07-18T08:44:29.384Z 1 TID-gnzqen8kk INFO: Running in ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
2017-07-18T08:44:29.384Z 1 TID-gnzqen8kk INFO: See LICENSE and the LGPL-3.0 for licensing details.
2017-07-18T08:44:29.384Z 1 TID-gnzqen8kk INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org
2017-07-18T08:44:29.389Z 1 TID-gnzqen8kk INFO: Loading Schedule
2017-07-18T08:44:29.389Z 1 TID-gnzqen8kk INFO: Scheduling events_reminder {"cron"=>"1 * * * *", "class"=>"EventReminderSenderJob", "description"=>"Run through the recurring Events", "queue"=>"data_checks"}
2017-07-18T08:44:29.394Z 1 TID-gnzqen8kk INFO: Schedules Loaded

But in the UI I have the No scheduled jobs were found message.

Can you please guide me on this?

from sidekiq-scheduler.

snmgian avatar snmgian commented on May 24, 2024

Hi @zedtux, which version of sidekiq-scheduler are you running ?

from sidekiq-scheduler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.