Results 1 to 6 of 6

Thread: Running two scheduler with different occurance

  1. #1
    ashishjivani Guest

    Default Running two scheduler with different occurance

    Hi,

    We want to run two scheduler. (SugarCRM CE 6.5.8)

    First one should run in every 3 Mins [Interval: On the 3 minute mark]
    Second one should run every day at 1:00 AM. [Interval: On the hour; 01:00am

    We have setup a scheduler accordingly. But when we have setup a cron in window system, First one is running fine in every 3 mins but second one is also executed in every 3 min, which should be run only once a day.

    Please help me to implement these two scheduled job.

    Thanks!

  2. #2
    davidboris's Avatar
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,525

    Default Re: Running two scheduler with different occurance

    Hello,

    when you say 2 schedulers, do you mean you have 2 distinct functions to be executed timed at 1 am and every 3 mins? If yes, there is no way 1 am function executes at every 3 mins.

    Post some snaps to show your issue, if you can..
    Web : http://www.urdhva-tech.com
    Twitter : @urdhvatech
    Email : contact@urdhva-tech.com
    Blog : Urdhva-Tech
    Skype : urdhvatech

    Our Premium Projects for SugarCRM:
    Premium theme for SugarCRM CE (Community Edition 6.5+ with 4 combinations, Black + Orange/Red/Green/Blue, bootstrap3 based)
    Duplicate detector to avoid duplicate data entry.
    Customer Self Service Portal for All Flavours.
    tagMe A complete tag management for SugarCRM.
    Meeting Map Reminder Meeting reminder with Gmap in Email

  3. #3
    nrsdnitin's Avatar
    nrsdnitin is offline Sugar Community Member
    Join Date
    Apr 2011
    Location
    Daman India
    Posts
    122

    Default Re: Running two scheduler with different occurance

    Dear,
    You can use action for those events, like for first workflow check one check box and make condition with this check box for second scheduler workflow.

  4. #4
    ashishjivani Guest

    Default Re: Running two scheduler with different occurance

    Quote Originally Posted by davidboris View Post
    Hello,

    when you say 2 schedulers, do you mean you have 2 distinct functions to be executed timed at 1 am and every 3 mins? If yes, there is no way 1 am function executes at every 3 mins.

    Post some snaps to show your issue, if you can..
    Yes.

    We have an option called 'Execute If missed'. Now if we deselect this option, cron of 1 AM will never run. and if we select this option, 1 AM cron will run with every 3 mins cron.

    We have set window scheduler to run at every 3 mins (php -f cron.php).

    Also attached an image to view both scheduled job.

    Thanks!Name:  CRMScheduler.JPG
Views: 159
Size:  19.1 KB

  5. #5
    ashishjivani Guest

    Default Re: Running two scheduler with different occurance

    We have created custom schedule file with different function for each scheduled job.

    ./custom/module/scheduler/_addJobsHere.php

    function AccountInsertion() {
    ...
    }

    function InvoiceInsertion() {
    ...
    }

    and same we have added in CRM interface to run Account job at every 1 AM everyday (with Excute if missed) and Invoice job at every 3 mins daily (with Excute if missed).

    Attached image will show you added scheduler.

    Thanks!Name:  CRMScheduler.JPG
Views: 163
Size:  19.1 KB

  6. #6
    davidboris's Avatar
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,525

    Default Re: Running two scheduler with different occurance

    Hello,

    There is nothing to do with Execute if missed.
    Try $GLOBALS['fatal']->log('<function names>',date('H:i:s')); in your functions and check in sugarcrm.log when and how many times which function gets executed.
    Web : http://www.urdhva-tech.com
    Twitter : @urdhvatech
    Email : contact@urdhva-tech.com
    Blog : Urdhva-Tech
    Skype : urdhvatech

    Our Premium Projects for SugarCRM:
    Premium theme for SugarCRM CE (Community Edition 6.5+ with 4 combinations, Black + Orange/Red/Green/Blue, bootstrap3 based)
    Duplicate detector to avoid duplicate data entry.
    Customer Self Service Portal for All Flavours.
    tagMe A complete tag management for SugarCRM.
    Meeting Map Reminder Meeting reminder with Gmap in Email

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. SugarCRM Scheduler job running repeatedly.
    By milind.wakale in forum Help
    Replies: 2
    Last Post: 2013-01-08, 04:09 AM
  2. Running Bounced Emails Without Scheduler?
    By Poynton in forum Developer Help
    Replies: 0
    Last Post: 2010-05-25, 02:08 PM
  3. Scheduler Not Running
    By techex in forum General Discussion
    Replies: 27
    Last Post: 2009-11-11, 12:38 AM
  4. Scheduler jobs not running
    By TheShark in forum Help
    Replies: 2
    Last Post: 2009-06-22, 03:53 AM
  5. error coming while running scheduler
    By VeonConsulting in forum Developer Help
    Replies: 1
    Last Post: 2007-11-07, 08:26 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •