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

Jobs not visible in dashboard #245

Closed
petebytes opened this issue May 9, 2021 · 3 comments
Closed

Jobs not visible in dashboard #245

petebytes opened this issue May 9, 2021 · 3 comments

Comments

@petebytes
Copy link

I see the job being added to good_jobs and it completes
GoodJob::Job Create (0.7ms) INSERT INTO "good_jobs" ("queue_name", "priority", "serialized_params", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["queue_name", "default"]

The dashboard does not show any jobs.

@bensheldon
Copy link
Owner

@petebytes thanks for opening an issue.

Can you open up the Rails console and verify that the job records are still present (GoodJob::Job.all)?

By default, GoodJob deletes jobs after they are executed: https://github.com/bensheldon/good_job#monitor-and-preserve-worked-jobs

@petebytes
Copy link
Author

@bensheldon

Thanks added the following to config/initializers/good_job.rb
GoodJob.preserve_job_records = true

And seems to be working!

@bensheldon
Copy link
Owner

🎉 awesome! Glad it was configuration 😅

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

2 participants