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

No route matches [POST] "/scheduler-dashboard/jobs/<id>/retry" #880

Closed
andreas-it-dev opened this issue Mar 6, 2023 · 2 comments
Closed

Comments

@andreas-it-dev
Copy link

andreas-it-dev commented Mar 6, 2023

hi, i've got an issue with rescheduling a job via web interface. it just throws a routing error that there would not be a post route to do that.

if that is important: i use a rails 7.0.4.2 app in api_only mode.

good job bundle info:

backend> bundle info good_job
  * good_job (3.12.7)
        Summary: A multithreaded, Postgres-based ActiveJob backend for Ruby on Rails
        Homepage: https://github.com/bensheldon/good_job
        Documentation: https://rdoc.info/github/bensheldon/good_job
        Source Code: https://github.com/bensheldon/good_job
        Changelog: https://github.com/bensheldon/good_job/blob/master/CHANGELOG.md
        Bug Tracker: https://github.com/bensheldon/good_job/issues
        Path: C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/good_job-3.12.7

routes.rb:

Rails.application.routes.draw do
  mount GoodJob::Engine => 'scheduler-dashboard'
  <snip...>
end

routing error:

image

@bensheldon
Copy link
Owner

I think this might be related to being in API-only mode and missing Rack::MethodOverride middleware:

https://github.com/bensheldon/good_job#api-only-rails-applications

@andreas-it-dev
Copy link
Author

hmm, weird, i totally did not see that paragraph in the readme..

anyway, Rack::MethodOverride was the missing middleware in my config. adding this did the trick, thanks a lot, Ben

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

No branches or pull requests

2 participants