https://github.com/socketry/async-job-rails-example
https://github.com/socketry/async-job-rails-example
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/socketry/async-job-rails-example
- Owner: socketry
- Created: 2024-02-20T01:08:49.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-14T06:29:11.000Z (over 1 year ago)
- Last Synced: 2024-08-14T07:43:47.356Z (over 1 year ago)
- Language: Ruby
- Size: 77.1 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Async Job Rails Example
This example shows how to use `async-job-adapter-active_job`.
It supports both immediate dispatch and delayed dispatch using `ActiveJob`. For now, you must have `redis` running on localhost :)
## Web Application
Start the server:
```shell
$ bundle install
$ bundle exec falcon serve
```
Visit [https://localhost:9292/](https://localhost:9292/) to enqueue a job.
## Job Server
Start the job server:
```shell
$ bundle exec async-job-adapter-active_job-server
```
## See Also
- [Async::Job](https://github.com/socketry/async-job) - Asynchronous job processing library.
- [Async::Job::Adapter::ActiveJob](https://github.com/socketry/async-job-adapter-active_job) - ActiveJob adapter for `Async::Job`.
- [Async::Service](https://github.com/socketry/async-service) - Asynchronous service framework (used for job server).