Magento extension Cronjob not working?How do I register a modules' cronjobcustom module + cronModule Cronjob not running on Magento 1.7.0.2Magento Cron Job is not working using modulerewrite block not workingCron job product importSimple Observer not firing on eventMagento 1.9 custom configuration is not visible in admin panelMagento 2 Custom cron job is ignoredMagento2 Cron job not running

Do native speakers use "ultima" and "proxima" frequently in spoken English?

Is there a creature that is resistant or immune to non-magical damage other than bludgeoning, slashing, and piercing?

Do I need to be arrogant to get ahead?

Comment Box for Substitution Method of Integrals

Brake pads destroying wheels

In Aliens, how many people were on LV-426 before the Marines arrived​?

Violin - Can double stops be played when the strings are not next to each other?

Practical application of matrices and determinants

What favor did Moody owe Dumbledore?

Calculate the frequency of characters in a string

Knife as defense against stray dogs

What does "Four-F." mean?

HP P840 HDD RAID 5 many strange drive failures

How to terminate ping <dest> &

What does Jesus mean regarding "Raca," and "you fool?" - is he contrasting them?

Should I use acronyms in dialogues before telling the readers what it stands for in fiction?

Can other pieces capture a threatening piece and prevent a checkmate?

Do US professors/group leaders only get a salary, but no group budget?

Bash - pair each line of file

Is there a hypothetical scenario that would make Earth uninhabitable for humans, but not for (the majority of) other animals?

Can you move over difficult terrain with only 5 feet of movement?

How to get the n-th line after a grepped one?

Probably overheated black color SMD pads

Describing a chess game in a novel



Magento extension Cronjob not working?


How do I register a modules' cronjobcustom module + cronModule Cronjob not running on Magento 1.7.0.2Magento Cron Job is not working using modulerewrite block not workingCron job product importSimple Observer not firing on eventMagento 1.9 custom configuration is not visible in admin panelMagento 2 Custom cron job is ignoredMagento2 Cron job not running













1















I was working on a extension for our Magento website, but i found out that my cronjob is not working correctly.



Config: appcodelocalQuestcontrolCustomExstentionetcconfig.xml



<?xml version="1.0"?>
<config>
<modules>
<Questcontrol_CustomExstention>
<version>0.1.0</version>
</Questcontrol_CustomExstention>
</modules>
<global>
<models>
<CustomExstention>
<class>Questcontrol_CustomExstention_Model</class>
</CustomExstention>
</models>
</global>
<crontab>
<jobs>
<CustomExstention>
<schedule>
<cron_expr>* * * * *</cron_expr>
</schedule>
<run>
<model>CustomExstention/Observer::test</model>
</run>
</CustomExstention>
</jobs>
</crontab>
<frontend>
<routers>
<CustomExstention>
<use>standard</use>
<args>
<module>Questcontrol_CustomExstention</module>
<frontName>CustomExstention</frontName>
</args>
</CustomExstention>
</routers>
</frontend>
</config>


Object: appcodelocalQuestcontrolCustomExstentionModelObserver.php



<?php
class Questcontrol_CustomExstention_Model_Observer

public function test()
Mage::log("TEST success");


?>


What am i doing wrong at this point?



Thanks in advanced!










share|improve this question




























    1















    I was working on a extension for our Magento website, but i found out that my cronjob is not working correctly.



    Config: appcodelocalQuestcontrolCustomExstentionetcconfig.xml



    <?xml version="1.0"?>
    <config>
    <modules>
    <Questcontrol_CustomExstention>
    <version>0.1.0</version>
    </Questcontrol_CustomExstention>
    </modules>
    <global>
    <models>
    <CustomExstention>
    <class>Questcontrol_CustomExstention_Model</class>
    </CustomExstention>
    </models>
    </global>
    <crontab>
    <jobs>
    <CustomExstention>
    <schedule>
    <cron_expr>* * * * *</cron_expr>
    </schedule>
    <run>
    <model>CustomExstention/Observer::test</model>
    </run>
    </CustomExstention>
    </jobs>
    </crontab>
    <frontend>
    <routers>
    <CustomExstention>
    <use>standard</use>
    <args>
    <module>Questcontrol_CustomExstention</module>
    <frontName>CustomExstention</frontName>
    </args>
    </CustomExstention>
    </routers>
    </frontend>
    </config>


    Object: appcodelocalQuestcontrolCustomExstentionModelObserver.php



    <?php
    class Questcontrol_CustomExstention_Model_Observer

    public function test()
    Mage::log("TEST success");


    ?>


    What am i doing wrong at this point?



    Thanks in advanced!










    share|improve this question


























      1












      1








      1








      I was working on a extension for our Magento website, but i found out that my cronjob is not working correctly.



      Config: appcodelocalQuestcontrolCustomExstentionetcconfig.xml



      <?xml version="1.0"?>
      <config>
      <modules>
      <Questcontrol_CustomExstention>
      <version>0.1.0</version>
      </Questcontrol_CustomExstention>
      </modules>
      <global>
      <models>
      <CustomExstention>
      <class>Questcontrol_CustomExstention_Model</class>
      </CustomExstention>
      </models>
      </global>
      <crontab>
      <jobs>
      <CustomExstention>
      <schedule>
      <cron_expr>* * * * *</cron_expr>
      </schedule>
      <run>
      <model>CustomExstention/Observer::test</model>
      </run>
      </CustomExstention>
      </jobs>
      </crontab>
      <frontend>
      <routers>
      <CustomExstention>
      <use>standard</use>
      <args>
      <module>Questcontrol_CustomExstention</module>
      <frontName>CustomExstention</frontName>
      </args>
      </CustomExstention>
      </routers>
      </frontend>
      </config>


      Object: appcodelocalQuestcontrolCustomExstentionModelObserver.php



      <?php
      class Questcontrol_CustomExstention_Model_Observer

      public function test()
      Mage::log("TEST success");


      ?>


      What am i doing wrong at this point?



      Thanks in advanced!










      share|improve this question
















      I was working on a extension for our Magento website, but i found out that my cronjob is not working correctly.



      Config: appcodelocalQuestcontrolCustomExstentionetcconfig.xml



      <?xml version="1.0"?>
      <config>
      <modules>
      <Questcontrol_CustomExstention>
      <version>0.1.0</version>
      </Questcontrol_CustomExstention>
      </modules>
      <global>
      <models>
      <CustomExstention>
      <class>Questcontrol_CustomExstention_Model</class>
      </CustomExstention>
      </models>
      </global>
      <crontab>
      <jobs>
      <CustomExstention>
      <schedule>
      <cron_expr>* * * * *</cron_expr>
      </schedule>
      <run>
      <model>CustomExstention/Observer::test</model>
      </run>
      </CustomExstention>
      </jobs>
      </crontab>
      <frontend>
      <routers>
      <CustomExstention>
      <use>standard</use>
      <args>
      <module>Questcontrol_CustomExstention</module>
      <frontName>CustomExstention</frontName>
      </args>
      </CustomExstention>
      </routers>
      </frontend>
      </config>


      Object: appcodelocalQuestcontrolCustomExstentionModelObserver.php



      <?php
      class Questcontrol_CustomExstention_Model_Observer

      public function test()
      Mage::log("TEST success");


      ?>


      What am i doing wrong at this point?



      Thanks in advanced!







      magento-1.9 cron






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 1 '16 at 12:56









      Gopal Patel

      2,9912930




      2,9912930










      asked Nov 1 '16 at 12:45









      LittleProgrammerLittleProgrammer

      364




      364




















          1 Answer
          1






          active

          oldest

          votes


















          0














          First of all, check your system crontab for magento cron. I think that magento cron.sh or cron.php runs every five minutes (cron expr: */5 * * * *), but not every minute (your cronjob expr), thats why you can't run your code propely.



          Second problem can be logic of magento cron (cron.sh or cron.php) - when it runs, it checks cron_scheduler table and works with it, after that it add new events (and remove old, etc) from that table. May be your cronjob just runs later because of this logic.



          And the third problem can be magento cron hangs on. In some cases (eg: your magento store has lots of cronjobs or cronjobs do lots of work, etc.) when your magento require a lot of time to work with cronjobs, cron.sh process can just hangs on and you need restart it.



          pS: In one of our projects we added additional system for magento cron control and moved heaviest and longest operations to the system cron, instead of magento cron






          share|improve this answer

























          • Thanks for your fast respone, I tried to put the cron on every 5 minutes but this still doesn't work. I tried the second option as well, but this didn't make any different at all. As last i tried to completely restart my apache server to clear all running crons (still doesn't work).

            – LittleProgrammer
            Nov 1 '16 at 14:29











          • Just truncate table cron_scheduler and try run you job. By the way, you can check your job in this table, if job exists - all ok, it's just cron freeze, if not - try clean cache (config cache) and try to run your job

            – rakshazi
            Nov 2 '16 at 14:10











          • I checked the 'cron_scheduler' table in my mysql database, but my cron is not in that table. I have cleaned and disabled the cache, but it still doesn't work.

            – LittleProgrammer
            Nov 3 '16 at 9:17











          • may be your module isn't active? Check app/etc/modules/<Module_Name>.xml active tag and check in core_reousrce DB table

            – rakshazi
            Nov 3 '16 at 14:56










          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f143521%2fmagento-extension-cronjob-not-working%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          First of all, check your system crontab for magento cron. I think that magento cron.sh or cron.php runs every five minutes (cron expr: */5 * * * *), but not every minute (your cronjob expr), thats why you can't run your code propely.



          Second problem can be logic of magento cron (cron.sh or cron.php) - when it runs, it checks cron_scheduler table and works with it, after that it add new events (and remove old, etc) from that table. May be your cronjob just runs later because of this logic.



          And the third problem can be magento cron hangs on. In some cases (eg: your magento store has lots of cronjobs or cronjobs do lots of work, etc.) when your magento require a lot of time to work with cronjobs, cron.sh process can just hangs on and you need restart it.



          pS: In one of our projects we added additional system for magento cron control and moved heaviest and longest operations to the system cron, instead of magento cron






          share|improve this answer

























          • Thanks for your fast respone, I tried to put the cron on every 5 minutes but this still doesn't work. I tried the second option as well, but this didn't make any different at all. As last i tried to completely restart my apache server to clear all running crons (still doesn't work).

            – LittleProgrammer
            Nov 1 '16 at 14:29











          • Just truncate table cron_scheduler and try run you job. By the way, you can check your job in this table, if job exists - all ok, it's just cron freeze, if not - try clean cache (config cache) and try to run your job

            – rakshazi
            Nov 2 '16 at 14:10











          • I checked the 'cron_scheduler' table in my mysql database, but my cron is not in that table. I have cleaned and disabled the cache, but it still doesn't work.

            – LittleProgrammer
            Nov 3 '16 at 9:17











          • may be your module isn't active? Check app/etc/modules/<Module_Name>.xml active tag and check in core_reousrce DB table

            – rakshazi
            Nov 3 '16 at 14:56















          0














          First of all, check your system crontab for magento cron. I think that magento cron.sh or cron.php runs every five minutes (cron expr: */5 * * * *), but not every minute (your cronjob expr), thats why you can't run your code propely.



          Second problem can be logic of magento cron (cron.sh or cron.php) - when it runs, it checks cron_scheduler table and works with it, after that it add new events (and remove old, etc) from that table. May be your cronjob just runs later because of this logic.



          And the third problem can be magento cron hangs on. In some cases (eg: your magento store has lots of cronjobs or cronjobs do lots of work, etc.) when your magento require a lot of time to work with cronjobs, cron.sh process can just hangs on and you need restart it.



          pS: In one of our projects we added additional system for magento cron control and moved heaviest and longest operations to the system cron, instead of magento cron






          share|improve this answer

























          • Thanks for your fast respone, I tried to put the cron on every 5 minutes but this still doesn't work. I tried the second option as well, but this didn't make any different at all. As last i tried to completely restart my apache server to clear all running crons (still doesn't work).

            – LittleProgrammer
            Nov 1 '16 at 14:29











          • Just truncate table cron_scheduler and try run you job. By the way, you can check your job in this table, if job exists - all ok, it's just cron freeze, if not - try clean cache (config cache) and try to run your job

            – rakshazi
            Nov 2 '16 at 14:10











          • I checked the 'cron_scheduler' table in my mysql database, but my cron is not in that table. I have cleaned and disabled the cache, but it still doesn't work.

            – LittleProgrammer
            Nov 3 '16 at 9:17











          • may be your module isn't active? Check app/etc/modules/<Module_Name>.xml active tag and check in core_reousrce DB table

            – rakshazi
            Nov 3 '16 at 14:56













          0












          0








          0







          First of all, check your system crontab for magento cron. I think that magento cron.sh or cron.php runs every five minutes (cron expr: */5 * * * *), but not every minute (your cronjob expr), thats why you can't run your code propely.



          Second problem can be logic of magento cron (cron.sh or cron.php) - when it runs, it checks cron_scheduler table and works with it, after that it add new events (and remove old, etc) from that table. May be your cronjob just runs later because of this logic.



          And the third problem can be magento cron hangs on. In some cases (eg: your magento store has lots of cronjobs or cronjobs do lots of work, etc.) when your magento require a lot of time to work with cronjobs, cron.sh process can just hangs on and you need restart it.



          pS: In one of our projects we added additional system for magento cron control and moved heaviest and longest operations to the system cron, instead of magento cron






          share|improve this answer















          First of all, check your system crontab for magento cron. I think that magento cron.sh or cron.php runs every five minutes (cron expr: */5 * * * *), but not every minute (your cronjob expr), thats why you can't run your code propely.



          Second problem can be logic of magento cron (cron.sh or cron.php) - when it runs, it checks cron_scheduler table and works with it, after that it add new events (and remove old, etc) from that table. May be your cronjob just runs later because of this logic.



          And the third problem can be magento cron hangs on. In some cases (eg: your magento store has lots of cronjobs or cronjobs do lots of work, etc.) when your magento require a lot of time to work with cronjobs, cron.sh process can just hangs on and you need restart it.



          pS: In one of our projects we added additional system for magento cron control and moved heaviest and longest operations to the system cron, instead of magento cron







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 13 mins ago









          Teja Bhagavan Kollepara

          3,00641949




          3,00641949










          answered Nov 1 '16 at 13:16









          rakshazirakshazi

          13




          13












          • Thanks for your fast respone, I tried to put the cron on every 5 minutes but this still doesn't work. I tried the second option as well, but this didn't make any different at all. As last i tried to completely restart my apache server to clear all running crons (still doesn't work).

            – LittleProgrammer
            Nov 1 '16 at 14:29











          • Just truncate table cron_scheduler and try run you job. By the way, you can check your job in this table, if job exists - all ok, it's just cron freeze, if not - try clean cache (config cache) and try to run your job

            – rakshazi
            Nov 2 '16 at 14:10











          • I checked the 'cron_scheduler' table in my mysql database, but my cron is not in that table. I have cleaned and disabled the cache, but it still doesn't work.

            – LittleProgrammer
            Nov 3 '16 at 9:17











          • may be your module isn't active? Check app/etc/modules/<Module_Name>.xml active tag and check in core_reousrce DB table

            – rakshazi
            Nov 3 '16 at 14:56

















          • Thanks for your fast respone, I tried to put the cron on every 5 minutes but this still doesn't work. I tried the second option as well, but this didn't make any different at all. As last i tried to completely restart my apache server to clear all running crons (still doesn't work).

            – LittleProgrammer
            Nov 1 '16 at 14:29











          • Just truncate table cron_scheduler and try run you job. By the way, you can check your job in this table, if job exists - all ok, it's just cron freeze, if not - try clean cache (config cache) and try to run your job

            – rakshazi
            Nov 2 '16 at 14:10











          • I checked the 'cron_scheduler' table in my mysql database, but my cron is not in that table. I have cleaned and disabled the cache, but it still doesn't work.

            – LittleProgrammer
            Nov 3 '16 at 9:17











          • may be your module isn't active? Check app/etc/modules/<Module_Name>.xml active tag and check in core_reousrce DB table

            – rakshazi
            Nov 3 '16 at 14:56
















          Thanks for your fast respone, I tried to put the cron on every 5 minutes but this still doesn't work. I tried the second option as well, but this didn't make any different at all. As last i tried to completely restart my apache server to clear all running crons (still doesn't work).

          – LittleProgrammer
          Nov 1 '16 at 14:29





          Thanks for your fast respone, I tried to put the cron on every 5 minutes but this still doesn't work. I tried the second option as well, but this didn't make any different at all. As last i tried to completely restart my apache server to clear all running crons (still doesn't work).

          – LittleProgrammer
          Nov 1 '16 at 14:29













          Just truncate table cron_scheduler and try run you job. By the way, you can check your job in this table, if job exists - all ok, it's just cron freeze, if not - try clean cache (config cache) and try to run your job

          – rakshazi
          Nov 2 '16 at 14:10





          Just truncate table cron_scheduler and try run you job. By the way, you can check your job in this table, if job exists - all ok, it's just cron freeze, if not - try clean cache (config cache) and try to run your job

          – rakshazi
          Nov 2 '16 at 14:10













          I checked the 'cron_scheduler' table in my mysql database, but my cron is not in that table. I have cleaned and disabled the cache, but it still doesn't work.

          – LittleProgrammer
          Nov 3 '16 at 9:17





          I checked the 'cron_scheduler' table in my mysql database, but my cron is not in that table. I have cleaned and disabled the cache, but it still doesn't work.

          – LittleProgrammer
          Nov 3 '16 at 9:17













          may be your module isn't active? Check app/etc/modules/<Module_Name>.xml active tag and check in core_reousrce DB table

          – rakshazi
          Nov 3 '16 at 14:56





          may be your module isn't active? Check app/etc/modules/<Module_Name>.xml active tag and check in core_reousrce DB table

          – rakshazi
          Nov 3 '16 at 14:56

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f143521%2fmagento-extension-cronjob-not-working%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Magento 2 duplicate PHPSESSID cookie when using session_start() in custom php scriptMagento 2: User cant logged in into to account page, no error showing!Magento duplicate on subdomainGrabbing storeview from cookie (after using language selector)How do I run php custom script on magento2Magento 2: Include PHP script in headerSession lock after using Cm_RedisSessionscript php to update stockMagento set cookie popupMagento 2 session id cookie - where to find it?How to import Configurable product from csv with custom attributes using php scriptMagento 2 run custom PHP script

          Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

          How to solve knockout JS error in Magento 2 Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2