Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 2 replies, has 2 voices, and was last updated by  abel 1 year, 3 months ago.

  • Creator
  • #21663


    Hi everyone, I had used Command to created a cron job. When I run it in with teminal, it’s work fine. But, after 30-40min, 1 error was occurred:

    Some I got an error:

    When I clear cache and try again, it’s worked.
    Someone can help?
    Questions marginalized: OroCRM provided class DateTime for get datetime, and option ‘now’ for get current date (today). Now, I want to get date yesterday. How can I perform that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
  • #21725
    Mike Kudelya
    Mike Kudelya
    Oro Core


    First error always occurs when job is changing state from

    to other. You can look at job output and understand why job state was failed. You can do that by clicking on System -> Job Queue -> Job Item.

    Can you show me how this command looks like?

    Subtract one day you can the following command:



    Sorry, I can’t find this job item. But now, my cron job run ok, I think this error was occurred because some error syntax in my code.
    Thanks for your reply :)

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

You must be logged in to reply to this topic.