Comments (5)
Are you getting the 502 error on your Web Server or on your Worker Server?
from active-elastic-job.
@joeyparis Thanks for the message. I resolved the 502 issue but still facing another issue.
Environment
EB
- Both web and worker are dockerized
- EB web env staging - Does not have PROCESS_ACTIVE_ELASTIC_JOBS
- EB worker env staging - PROCESS_ACTIVE_ELASTIC_JOBS = true
- Both have the same code base
SQS
- Correct
Issues
- I triggered a job but it does not invoke while the SQS monitor react to the trigger and increase the number of messages available
- Don't have any logs regarding the job triggered when I pull all logs from EB worker env staging.
- I don't have any clue why it does not invoke the job
- When I click the SQS URL(https://sqs.eu-north-1.amazonaws.com/704284992978/sqs-name-eample), it show message...
Can someone teach me how to solve this issue?
from active-elastic-job.
What ports do you have exposed on the worker environment? Was the worker functioning prior to installing the gem or are you using this gem to get a worker in the first place? I apologize as I'm not as familiar with the Docker portion of the gem but I'll help how I can!
from active-elastic-job.
Hi Joey,
Thank you for your support.
-
What ports do you have exposed on the worker environment?
I made a simple database created in order to test the job work. -
Was the worker functioning prior to installing the gem or are you using this gem to get a worker in the first place?
I have just confirmed that the job works in the development -
I found a log in the web app. it triggers the job.
[ActiveJob] Enqueued SendInvitationToSupplierJob (Job ID: 97ae9a44-dda8-4c5e-aae5-4b66ae40b2ed) to ActiveElasticJob(active_job_demo) with arguments: "hi" -
In the worker app, I can not find any log regarding the job.
I am crying now
from active-elastic-job.
What ports do you have exposed on the worker environment?
I made a simple database created in order to test the job work.
Are you deploying the same rails application code to both the web-env and worker-env? They should both be the same with the exception of the ENV variables. I'm not super familiar with the docker setup but you probably need to expose port 80 on the container so that Elastic Beanstalk's sqsd is able to publish the requests to the application. My guess is this is why jobs aren't processing but also why you're not seeing any errors.
Was the worker functioning prior to installing the gem or are you using this gem to get a worker in the first place?
I have just confirmed that the job works in the development
When testing it in development are you also using SQS (or the localstack equivalent?)
I found a log in the web app. it triggers the job.
[ActiveJob] Enqueued SendInvitationToSupplierJob (Job ID: 97ae9a44-dda8-4c5e-aae5-4b66ae40b2ed) to ActiveElasticJob(active_job_demo) with arguments: "hi"
This makes sense as the job is reaching the SQS queue, so the problem is definitely in the worker. I would see if you can find any logs for the sqsd
process in the worker environment.
from active-elastic-job.
Related Issues (20)
- Applying new patches HOT 1
- Job gets enqueued but code in perform function won't run HOT 10
- Very long delay when enqueuing new jobs (~38 seconds) HOT 2
- Rails6 ActiveJob::QueueAdapters::ActiveElasticJobAdapter::NonExistentQueue HOT 1
- Is this actively maintained? HOT 7
- ActionController::RoutingError (No route matches [POST] "/scheduled"): HOT 1
- Trigger Rails Job from Java Service
- update aws-sdk-sqs HOT 3
- Rails 6.1 - Running inside Docker
- Version bumps should automatically update integration testing Gemfile.lock files
- Add support for Rails 7 and Ruby 3 HOT 1
- Delete periodic task from cronjob.yaml HOT 1
- Question regarding active_storage_analysis HOT 1
- /var/proxy/staging/nginx/conf.d/read_timeout.conf disappears HOT 4
- Configure queue url for multiple AWS accounts HOT 24
- SQS message timeout response
- Comparison to aws-sdk-sqs, and how to boot the worker? HOT 3
- periodic tasks are not verified? HOT 1
- 403 response on Docker Amazon Linux 2023
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from active-elastic-job.