Announcement

Collapse
No announcement yet.

Pending Scheduled Jobs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Pending Scheduled Jobs

    Hi,

    I am getting loads of pending status under scheduled jobs, even though the cron service is working and there are no error logs showing

    Any thoughts?

  • #2
    Hi,

    No clue, Maybe everything is fine. W/o examples I can't say anything.

    Comment


    • #3
      well i have setup an email reminder from scheduling a call, popup works but the email reminder doesnt

      Comment


      • #4
        Also created a mass email campaign, which also was not sent to the scheduled time - although smtp settings and test email works

        Comment


        • #5
          Check if there failed jobs. Check whether outbound emails work.

          Comment


          • #6
            there are no failed jobs, other than pending and the outbound emails work

            Comment


            • #7
              I have no idea. Does "Send Test Email" in Outbound Emails section of Administration work?

              Comment


              • #8
                yes, checked it again just now and it sends the email - is there way of checking if the scheduled jobs are working other than jobs pending status and cron-jobs

                Comment


                • #9
                  Please see the response from the server support, please note i have replaced the site url with domain on the cron setup shown below - to hide the name on the public forum

                  Hello,

                  From the server there is only cron setup for this domain. and that is calling the anther cron.php file


                  * * * * * /usr/local/bin/php -f /home/domain/public_html/domain/cron.php > /dev/null 2>&1

                  It's being executed every minute and i can see its running fine. But the cron.php file located inside the domain is having some code which i am unable to understand as shown below.

                  ================================================== ==================

                  $sapiName = php_sapi_name();



                  if (substr($sapiName, 0, 3) != 'cli') {

                  die("Cron can be run only via CLI");

                  }



                  include "bootstrap.php";



                  $app = new \Espo\Core\Application();

                  $app->runCron();

                  ================================================== ==================

                  There should be some sort of application setting for executing these crons. Some documentation for the product will help to identify the issue with the cron. You can either ignore the pending que as it seems be an error with application as cron is working fine on server or you can contact the application maker to see if they have some way to clear the pending crons.

                  Comment


                  • #10
                    Please open in browser the address http://YOUR_CRM_URL/#Admin/jobs

                    And take a screenshot.

                    Comment


                    • #11
                      Screenshot
                      Attached Files

                      Comment


                      • #12
                        Too small image.

                        Comment


                        • #13
                          Link to image https://s32.postimg.org/d9djyuwk5/sc...bs_pending.jpg

                          Comment


                          • #14
                            So problem not with email. Check whether there are any Errors in server log and espocrm log (data/logs).

                            Comment


                            • #15
                              ah, didnt check the data/logs, this is what it states;

                              Espo.ERROR: Uncaught Exception InvalidArgumentException: "*/4* * * * is not a valid CRON expression" at /home/url/public_html/url/vendor/mtdowling/cron-expression/src/Cron/CronExpression.php line 105 {"exception":"[object] (InvalidArgumentException(code: 0): */4* * * * is not a valid CRON expression at /home/url/public_html/url/vendor/mtdowling/cron-expression/src/Cron/CronExpression.php:105)"} []

                              What should be the correct CRON expression

                              Comment

                              Working...
                              X