Giter Club home page Giter Club logo

Comments (5)

joeyparis avatar joeyparis commented on June 24, 2024

Are you getting the 502 error on your Web Server or on your Worker Server?

from active-elastic-job.

TheodoreCha avatar TheodoreCha commented on June 24, 2024

@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

image

Can someone teach me how to solve this issue?

from active-elastic-job.

joeyparis avatar joeyparis commented on June 24, 2024

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.

TheodoreCha avatar TheodoreCha commented on June 24, 2024

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.

joeyparis avatar joeyparis commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.