{"id":6743,"date":"2014-07-02T14:56:15","date_gmt":"2014-07-02T11:56:15","guid":{"rendered":"http:\/\/blog.belvg.com\/?p=6743"},"modified":"2019-03-28T09:16:17","modified_gmt":"2019-03-28T07:16:17","slug":"how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html","title":{"rendered":"How to Set Expressions for Separate Cron Tasks Via Admin Settings in Magento"},"content":{"rendered":"<p>Sometimes you &#160;need to add the ability to change cron expression for separate tasks in the admin panel through module settings. It is important to note that native Magento does not offer such possibility by default, however, it has this mechanism included. Let&#8217;s have a look at a default task catalog_product_index_price_reindex_all&#160; in the module Mage_Catalog:<!--more--><\/p>\n<p>File &lt;magento_root&gt;\/app\/code\/core\/Mage\/Catalog\/etc\/config.xml:<\/p>\n<pre class=\"lang:php decode:true\">&lt;global&gt;\r\n    ...\r\n    &lt;crontab&gt;\r\n        &lt;jobs&gt;\r\n            &lt;catalog_product_index_price_reindex_all&gt;\r\n                &lt;schedule&gt;\r\n                    &lt;cron_expr&gt;0 2 * * *&lt;\/cron_expr&gt;\r\n                &lt;\/schedule&gt;\r\n                &lt;run&gt;\r\n                    &lt;model&gt;catalog\/observer::reindexProductPrices&lt;\/model&gt;\r\n                &lt;\/run&gt;\r\n            &lt;\/catalog_product_index_price_reindex_all&gt;\r\n        &lt;\/jobs&gt;\r\n    &lt;\/crontab&gt;\r\n    ...\r\n&lt;\/global&gt;<\/pre>\n<p>As we can see the cron expression is statically defined through xml. The same implementation is typical for all standard cron &#160;jobs in Magento. Let&#8217;s check app\/code\/core\/Mage\/Cron\/Model\/Observer.php:<\/p>\n<p>File &lt;magento_root&gt;\/app\/code\/core\/Mage\/Cron\/Model\/Observer.php:<\/p>\n<pre class=\"lang:php decode:true\">class Mage_Cron_Model_Observer\r\n{\r\n    ...\r\n    \/* line 163 in magento 1.9.0.1 *\/\r\n    protected function _generateJobs($jobs, $exists)\r\n    {\r\n        $scheduleAheadFor = Mage::getStoreConfig(self::XML_PATH_SCHEDULE_AHEAD_FOR)*60;\r\n        $schedule = Mage::getModel('cron\/schedule');\r\n\r\n        foreach ($jobs as $jobCode =&gt; $jobConfig) {\r\n            $cronExpr = null;\r\n            if ($jobConfig-&gt;schedule-&gt;config_path) {\r\n                $cronExpr = Mage::getStoreConfig((string)$jobConfig-&gt;schedule-&gt;config_path);\r\n            }\r\n            if (empty($cronExpr) &amp;&amp; $jobConfig-&gt;schedule-&gt;cron_expr) {\r\n                $cronExpr = (string)$jobConfig-&gt;schedule-&gt;cron_expr;\r\n            }\r\n            if (!$cronExpr || $cronExpr == 'always') {\r\n                continue;\r\n            }\r\n\r\n            $now = time();\r\n            $timeAhead = $now + $scheduleAheadFor;\r\n            $schedule-&gt;setJobCode($jobCode)\r\n                -&gt;setCronExpr($cronExpr)\r\n                -&gt;setStatus(Mage_Cron_Model_Schedule::STATUS_PENDING);\r\n\r\n            for ($time = $now; $time &lt; $timeAhead; $time += 60) {\r\n                $ts = strftime('%Y-%m-%d %H:%M:00', $time);\r\n                if (!empty($exists[$jobCode.'\/'.$ts])) {\r\n                    \/\/ already scheduled\r\n                    continue;\r\n                }\r\n                if (!$schedule-&gt;trySchedule($time)) {\r\n                    \/\/ time does not match cron expression\r\n                    continue;\r\n                }\r\n                $schedule-&gt;unsScheduleId()-&gt;save();\r\n            }\r\n        }\r\n        return $this;\r\n    }\r\n    ...\r\n}<\/pre>\n<p>As we can see before using the node&#160; &lt;&#1089;r&#1086;n_expr&gt;, we first check for the node &lt;&#1089;&#1086;nfig_p&#1072;th&gt; and &#160;in case it is verified then we attempt to get the value for the cron expression through Mage::getStoreConfig() by using the values of that very node as the path. As you can see it is pretty easy to set a cron task for using some settings in the admin panel.&#160; Let&#8217;s take a simple example:<\/p>\n<p>In the system.xml file of the module we create a cron expression setting:<\/p>\n<pre class=\"lang:php decode:true\">&lt;config&gt;\r\n    &lt;sections&gt;\r\n        &lt;mymodule translate=\"label\" module=\"mymodule\"&gt;\r\n            &lt;label&gt;My Module&lt;\/label&gt;\r\n            &lt;tab&gt;belvg&lt;\/tab&gt;\r\n            &lt;frontend_type&gt;text&lt;\/frontend_type&gt;\r\n            &lt;sort_order&gt;10&lt;\/sort_order&gt;\r\n            &lt;show_in_default&gt;1&lt;\/show_in_default&gt;\r\n            &lt;show_in_website&gt;1&lt;\/show_in_website&gt;\r\n            &lt;show_in_store&gt;1&lt;\/show_in_store&gt;\r\n            &lt;groups&gt;\r\n                &lt;settings translate=\"label\" module=\"mymodule\"&gt;\r\n                    &lt;label&gt;Settings&lt;\/label&gt;\r\n                    &lt;frontend_type&gt;text&lt;\/frontend_type&gt;\r\n                    &lt;sort_order&gt;2&lt;\/sort_order&gt;\r\n                    &lt;show_in_default&gt;1&lt;\/show_in_default&gt;\r\n                    &lt;show_in_website&gt;1&lt;\/show_in_website&gt;\r\n                    &lt;show_in_store&gt;1&lt;\/show_in_store&gt;\r\n                    &lt;fields&gt;\r\n                        &lt;cron_expr translate=\"label\" module=\"mymodule\"&gt;\r\n                            &lt;label&gt;Cron Expression&lt;\/label&gt;\r\n                            &lt;frontend_type&gt;text&lt;\/frontend_type&gt;\r\n                            &lt;sort_order&gt;10&lt;\/sort_order&gt;\r\n                            &lt;show_in_default&gt;1&lt;\/show_in_default&gt;\r\n                            &lt;show_in_website&gt;1&lt;\/show_in_website&gt;\r\n                            &lt;show_in_store&gt;1&lt;\/show_in_store&gt;\r\n                        &lt;\/cron_expr&gt;\r\n                    &lt;\/fields&gt;\r\n                &lt;\/settings&gt;\r\n            &lt;\/groups&gt;\r\n        &lt;\/mymodule&gt;\r\n    &lt;\/sections&gt;\r\n&lt;\/config&gt;<\/pre>\n<p>In the config.xml file we register the cron task:<\/p>\n<pre class=\"lang:php decode:true\">&lt;global&gt;\r\n    ...\r\n    &lt;crontab&gt;\r\n        &lt;jobs&gt;\r\n            &lt;mymodule_cron_task&gt;\r\n                &lt;schedule&gt;\r\n                    &lt;config_path&gt;mymodule\/settings\/cron_expr&lt;\/config_path&gt;\r\n                &lt;\/schedule&gt;\r\n                &lt;run&gt;\r\n                    &lt;model&gt;catalog\/observer::reindexProductPrices&lt;\/model&gt;\r\n                &lt;\/run&gt;\r\n            &lt;\/mymodule_cron_task&gt;\r\n        &lt;\/jobs&gt;\r\n    &lt;\/crontab&gt;\r\n    ...\r\n&lt;\/global&gt;<\/pre>\n<p>Now cron expression can be set in the admin settings by using standard cron syntax.<\/p>\n","protected":false},"excerpt":{"rendered":"Sometimes you &#160;need to add the ability to change cron expression for separate tasks in &#8230;","protected":false},"author":30,"featured_media":8956,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[14],"tags":[176,3],"class_list":["post-6743","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-magento","tag-cron","tag-magento","post_format-post-format-image"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"Sometimes you need to add the ability to change cron expression for separate tasks in the admin panel through module settings. It is important to note that native Magento does not offer such possibility by default, however, it has this mechanism included.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Andrei Danilchyk\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html#article\",\"name\":\"How to Set Expressions for Separate Cron Tasks in Magento | BelVG Blog\",\"headline\":\"How to Set Expressions for Separate Cron Tasks Via Admin Settings in Magento\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrei-danilchyk#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/07\\\/blog-cron1.jpg\",\"width\":682,\"height\":170},\"datePublished\":\"2014-07-02T14:56:15+02:00\",\"dateModified\":\"2019-03-28T09:16:17+02:00\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html#webpage\"},\"articleSection\":\"Magento, cron, magento, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento#listItem\",\"name\":\"Magento\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento#listItem\",\"position\":2,\"name\":\"Magento\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html#listItem\",\"name\":\"How to Set Expressions for Separate Cron Tasks Via Admin Settings in Magento\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html#listItem\",\"position\":3,\"name\":\"How to Set Expressions for Separate Cron Tasks Via Admin Settings in Magento\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/magento#listItem\",\"name\":\"Magento\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrei-danilchyk#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrei-danilchyk\",\"name\":\"Andrei Danilchyk\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/035c7a3d986ac8d09b60f02a1d47ab8822a92657f10160d588ea28f14db1efb7?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Andrei Danilchyk\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html\",\"name\":\"How to Set Expressions for Separate Cron Tasks in Magento | BelVG Blog\",\"description\":\"Sometimes you need to add the ability to change cron expression for separate tasks in the admin panel through module settings. It is important to note that native Magento does not offer such possibility by default, however, it has this mechanism included.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrei-danilchyk#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/andrei-danilchyk#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/07\\\/blog-cron1.jpg\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html\\\/#mainImage\",\"width\":682,\"height\":170},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html#mainImage\"},\"datePublished\":\"2014-07-02T14:56:15+02:00\",\"dateModified\":\"2019-03-28T09:16:17+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to Set Expressions for Separate Cron Tasks in Magento | BelVG Blog","description":"Sometimes you need to add the ability to change cron expression for separate tasks in the admin panel through module settings. It is important to note that native Magento does not offer such possibility by default, however, it has this mechanism included.","canonical_url":"https:\/\/belvg.com\/blog\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html#article","name":"How to Set Expressions for Separate Cron Tasks in Magento | BelVG Blog","headline":"How to Set Expressions for Separate Cron Tasks Via Admin Settings in Magento","author":{"@id":"https:\/\/belvg.com\/blog\/author\/andrei-danilchyk#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2014\/07\/blog-cron1.jpg","width":682,"height":170},"datePublished":"2014-07-02T14:56:15+02:00","dateModified":"2019-03-28T09:16:17+02:00","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html#webpage"},"articleSection":"Magento, cron, magento, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/belvg.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento#listItem","name":"Magento"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento#listItem","position":2,"name":"Magento","item":"https:\/\/belvg.com\/blog\/category\/magento","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html#listItem","name":"How to Set Expressions for Separate Cron Tasks Via Admin Settings in Magento"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html#listItem","position":3,"name":"How to Set Expressions for Separate Cron Tasks Via Admin Settings in Magento","previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/magento#listItem","name":"Magento"}}]},{"@type":"Organization","@id":"https:\/\/belvg.com\/blog\/#organization","name":"BelVG Blog","description":"Magento and Prestashop articles","url":"https:\/\/belvg.com\/blog\/"},{"@type":"Person","@id":"https:\/\/belvg.com\/blog\/author\/andrei-danilchyk#author","url":"https:\/\/belvg.com\/blog\/author\/andrei-danilchyk","name":"Andrei Danilchyk","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/035c7a3d986ac8d09b60f02a1d47ab8822a92657f10160d588ea28f14db1efb7?s=96&d=mm&r=g","width":96,"height":96,"caption":"Andrei Danilchyk"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html#webpage","url":"https:\/\/belvg.com\/blog\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html","name":"How to Set Expressions for Separate Cron Tasks in Magento | BelVG Blog","description":"Sometimes you need to add the ability to change cron expression for separate tasks in the admin panel through module settings. It is important to note that native Magento does not offer such possibility by default, however, it has this mechanism included.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/andrei-danilchyk#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/andrei-danilchyk#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2014\/07\/blog-cron1.jpg","@id":"https:\/\/belvg.com\/blog\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html\/#mainImage","width":682,"height":170},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html#mainImage"},"datePublished":"2014-07-02T14:56:15+02:00","dateModified":"2019-03-28T09:16:17+02:00"},{"@type":"WebSite","@id":"https:\/\/belvg.com\/blog\/#website","url":"https:\/\/belvg.com\/blog\/","name":"BelVG Blog","description":"Magento and Prestashop articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"6743","title":"How to Set Expressions for Separate Cron Tasks in Magento | #site_title","description":"Sometimes you  need to add the ability to change cron expression for separate tasks in the admin panel through module settings. It is important to note that native Magento does not offer such possibility by default, however, it has this mechanism included.","keywords":[{"label":"How to Set Expressions for Separate Cron Tasks Via Admin Settings in Magento","value":"How to Set Expressions for Separate Cron Tasks Via Admin Settings in Magento"}],"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-11-03 18:38:00","updated":"2026-11-03 18:38:00"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/magento\" title=\"Magento\">Magento<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to Set Expressions for Separate Cron Tasks Via Admin Settings in Magento\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/belvg.com\/blog\/"},{"label":"Magento","link":"https:\/\/belvg.com\/blog\/category\/magento"},{"label":"How to Set Expressions for Separate Cron Tasks Via Admin Settings in Magento","link":"https:\/\/belvg.com\/blog\/how-to-set-expressions-for-separate-cron-tasks-via-dmin-settings-in-magento.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/6743","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/users\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=6743"}],"version-history":[{"count":-4,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/6743\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/8956"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=6743"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=6743"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=6743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}