OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Programming Questions Job cron cannot change status

This topic contains 2 replies, has 2 voices, and was last updated by  abel 7 years, 7 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #25236

    abel
    Participant

    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?
    ———————————————–
    P/s:
    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
    Replies
  • #25237

    Mike Kudelya
    Participant

    Hi,

    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:

    #25238

    abel
    Participant

    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)

The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.

Back to top