rubyonjets / jets

Ruby on Jets
http://rubyonjets.com
MIT License
2.6k stars 181 forks source link

Jets 6 Jobs not being created #726

Closed SteffanPerry closed 5 months ago

SteffanPerry commented 5 months ago

Checklist

My Environment

Software
Operating System osx
Jets 6.0
Ruby 3.3.0

Expected Behaviour

When jobs are enabled via config.job.enable = true in deploy.rb, the jobs in app/jobs/* will be deployed.

Current Behavior

After enabling jobs, none of the jobs in the app/job/directory have been created. This is using the latest rails 7.x, ruby 3.3.0, and jets 6.0

Step-by-step reproduction instructions

Create a rails/jets application. Create a api endpoint Deploy the api add a job (active job) and enable jobs in the deploy.rb config. deploy jets again.

Code Sample

Solution Suggestion

jeremiahlukus commented 5 months ago

Do you have a sample application?

Is the event lambda and sqs being created?

jeremiahlukus commented 5 months ago

Tried on a couple different apps unable to reproduce.

SteffanPerry commented 5 months ago

Thanks for taking a look. I'm gonna destroy everything then bring it back up to see if I can repro as well.

But no the sqs and lambdas are not being created.

jeremiahlukus commented 5 months ago

Did you set ?

config.active_job.queue_adapter = :jets_job

https://docs.rubyonjets.com/docs/jobs/enable/

tongueroo commented 5 months ago

@SteffanPerry Thanks for the report. Found some edge case issues with jobs. Will take a closer look soon. Just wanted to let you know so you don’t spin cycles.

tongueroo commented 5 months ago

The edge case issues should be fixed. Fixed in #727

For posterity: