rubyonjets / jets

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

Run sqs_event jobs in local development mode #365

Closed douglasjsellers closed 3 months ago

douglasjsellers commented 5 years ago

Summary

When "jets server" is run in local development mode all jobs should be running. Specifically I would like any jobs based on sqs_event to be running and to respond to events pushed into the queue they are attached to when in local development mode. Ideally all jobs would work, no matter the type.

Motivation

Without supporting local jobs doing local development becomes very problematic. A developer ends up having to continuously deploy any changes to the their jobs any time a modification has been made - this is, obviously, very slow. It also forces every developer to have an cloudfront stack running in AWS rather than being able to do development locally and then deploy to a common integration environment as is common with many git flows.

The only alternative to this (that I can find) is to manually run the jobs but even running the manually is a problem as you have fetch the sqs events by hand before executing the jobs.

Guide-level explanation

Reference-level explanation

Drawbacks

Ideally this would work consistently for all different types of jobs. This seems complex and expensive to implement.

Unresolved Questions

tongueroo commented 3 months ago

Jets work differently with Jets 6.0 They are essentially Rails ActiveJob jobs. You can use different adapter in development vs production

Related