Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9062689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:48:04+00:00 2026-06-16T15:48:04+00:00

I am facing some issue in my listener while implementing JobQueueEvent, here is my

  • 0

I am facing some issue in my listener while implementing JobQueueEvent, here is my my listener class

class JobStateChangeListener {

    function onJobStateChange(StateChangeEvent $event) {

        if ($event->getJob()->isFinished()) {
            error_log('Job status is isFinished');
        }

        if ($event->getJob()->isPending()) {
            error_log('Job status is isPending');
        }

        if ($event->getJob()->isFailed()) {
            error_log('Job status is isFailed');
        }

        if ($event->getJob()->isRunning()) {
            error_log('Job status is isRunning');
        }

        if ($event->getJob()->isNew()) {
            error_log('Job status is isNew');
        }
    }
}

And here is my service.yml for adding listener

services:
    jobeventlistener:
      class: ####\SupportBundle\Listener\JobStateChangeListener
      tags:
            - { name: jms_job_queue.job_state_change , method: onJobStateChange }

here is how JMSjobQueueBundle dispatch Event https://github.com/schmittjoh/JMSJobQueueBundle/blob/master/Command/RunCommand.php#L182

Updated: ISSUE is when i run app/console jms-job-queue:run my listener not error_log written in onJobStateChange func, it may means is not listening . let me know what i am doing wrong.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T15:48:05+00:00Added an answer on June 16, 2026 at 3:48 pm

    Its Because app/console not find –jms-job-id, you need to change your app/console file just replace use Symfony\Bundle\FrameworkBundle\Console\Application; to use JMS\JobQueueBundle\Console\Application; then it will works fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm facing an issue using eval function. Indeed I have some function name inside
I am facing some issue while developing Video capturing application. 1) When I start
I'm facing some permission issue while deleting android bookmarks: java.lang.SecurityException: Permission Denial: writing com.android.browser.provider.BrowserProvider2
We are facing a weird issue and need some brain storming here. I will
I am trying to get data out of a list,but facing some issue while
Facing some issue in Talend Admin Console, the jobs that are running from IDE
I need some help in resolving an issue I'm facing an with communication of
I am facing some issues in loading a CSV file through SQL Loader. Here
I am facing some issues while serializing objects (I am using JBoss Drools, and
My development team of four people has been facing this issue for some time

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.