OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums OroPlatform OroPlatform – Programming Questions Cron job not added to table `oro_message_queue_job` and Job List

This topic contains 2 replies, has 1 voice, and was last updated by  kiatsiong.ng 7 months, 1 week ago.

  • Creator
    Topic
  • #38489

    kiatsiong.ng
    Participant

    I can see the cron schedule is loaded with oro:cron:definitions:load. However, it doesn’t get added to the Job List (table oro_message_queue_job).

    This is the command class:

    I can run the command in CLI:

    What did I miss?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #38491

    kiatsiong.ng
    Participant

    In var/logs/prod.log:

    [2019-04-09 06:36:02] console.ERROR: An error occurred while running command “‘oro:cron’ –env=prod”. The command “oro:cron:sc-logger-event:insert-action-data” does not exist. {“exit_code”:1,”exception”:”[object] (Symfony\\Component\\Console\\Exception\\CommandNotFoundException(code: 0): The command \”oro:cron:sc-logger-event:insert-action-data\” does not exist. at /usr/share/nginx/html/misoro/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:484)”,”arguments”:{“command”:”oro:cron”},”options”:{“env”:”prod”}} []
    [2019-04-09 06:36:02] console.ERROR: Error thrown while running command “oro:cron –env=prod”. Message: “The command “oro:cron:sc-logger-event:insert-action-data” does not exist.” {“exception”:”[object] (Symfony\\Component\\Console\\Exception\\CommandNotFoundException(code: 0): The command \”oro:cron:sc-logger-event:insert-action-data\” does not exist. at /usr/share/nginx/html/misoro/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:484)”,”command”:”oro:cron –env=prod”,”message”:”The command \”oro:cron:sc-logger-event:insert-action-data\” does not exist.”} []

    #38492

    kiatsiong.ng
    Participant

    It turns out that I needed to clear cache at prod:

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No