Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not seeing scheduled tasks in web #56

Closed
cbetta opened this issue Oct 16, 2015 · 10 comments
Closed

Not seeing scheduled tasks in web #56

cbetta opened this issue Oct 16, 2015 · 10 comments

Comments

@cbetta
Copy link
Contributor

cbetta commented Oct 16, 2015

Hey, just tried the new gem release. This is my sidekiq.yml:

---
:timeout: 8
:queues:
  - priority_emails
  - emails
  - releases
  - default

:schedule:
  process_emails_due:
    cron: "* * * * *"
    queue: emails
    class: "EmailsDueWorker"

  process_releases_due:
    cron: "* * * * *"
    queue: releases
    class: "ReleasesDueWorker"

  process_releases_expire_on_start:
    cron: "* * * * *"
    queue: releases
    class: "ReleasesExpireOnStartWorker"

The tasks are scheduled but somehow I'm not seeing them in the dashboard

@elpic
Copy link
Contributor

elpic commented Oct 17, 2015

I will take a look asap.

@cbetta
Copy link
Contributor Author

cbetta commented Oct 17, 2015

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

@cbetta
Copy link
Contributor Author

cbetta commented Oct 17, 2015

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.

@cbetta
Copy link
Contributor Author

cbetta commented Oct 17, 2015

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

@elpic
Copy link
Contributor

elpic commented Oct 17, 2015

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

@cbetta
Copy link
Contributor Author

cbetta commented Oct 17, 2015

web: bundle exec je -v puma -C config/puma.rb
worker: bundle exec sidekiq

@elpic
Copy link
Contributor

elpic commented Oct 19, 2015

In minutes I will upload a solution for this

@elpic elpic closed this as completed Oct 19, 2015
@zedtux
Copy link

zedtux commented Jul 18, 2017

@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?

@snmgian
Copy link
Contributor

snmgian commented Jul 19, 2017

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

@zedtux
Copy link

zedtux commented Jul 19, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants