Skip to content
Snippets Groups Projects
Commit 331567c2 authored by Eduarda Lentz Rodrigues da Silva's avatar Eduarda Lentz Rodrigues da Silva
Browse files

ZERO-162 Created config to cron job and changed id value

parent fe73457f
No related branches found
No related tags found
1 merge request!46ZERO-162-changes
......@@ -24,8 +24,14 @@
<label>Store Email Addresses</label>
<tab>general</tab>
<resource>Magento_Config::trans_email</resource>
<group id="ident_content_provisioning" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Content Provisioning</label>
<group id="block_change_detector" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Block Change Detector</label>
<label>Email Template Change Detector</label>
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
<label>Enable</label>
<comment>Enables the Block Change Detector</comment>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="email" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Recipient Email</label>
<comment>Emails here will receive a notification if there are some CMS blocks changed. For more than one email, insert comma to separate.</comment>
......@@ -34,7 +40,7 @@
</field>
<field id="cron_schedule" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
<label>Cron Schedule</label>
<comment>Specify the cron schedule in crontab format (e.g., */5 * * * *)</comment>
<comment model="Firegento\ContentProvisioning\Model\Config\CronExpressionComment" />
</field>
</group>
</section>
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright (c) 2025 TechDivision GmbH <info@techdivision.com> - TechDivision GmbH
* All rights reserved
*
* This product includes proprietary software developed at TechDivision GmbH, Germany
* For more information see http://www.techdivision.com/
*
* To obtain a valid license for using this software please contact us at
* license@techdivision.com
*/
/**
* @copyright Copyright (c) 2025 TechDivision GmbH <info@techdivision.com> - TechDivision GmbH
*
* @link https://www.techdivision.com/
* @author Team Zero <zero@techdivision.com>
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<trans_email>
<block_change_detector>
<enabled>0</enabled>
<cron_schedule>0 0 * * *</cron_schedule>
</block_change_detector>
</trans_email>
</default>
</config>
......@@ -19,7 +19,7 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/cron_groups.xsd">
<group id="changed_cms_block">
<group id="block_change_detector">
<schedule_generate_every>1</schedule_generate_every>
<schedule_ahead_for>4</schedule_ahead_for>
<schedule_lifetime>2</schedule_lifetime>
......
......@@ -16,7 +16,7 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
<group id="changed_cms_block">
<group id="block_change_detector">
<job instance="Firegento\ContentProvisioning\Cron\InconsistenciesInBlockEmail" method="execute" name="content_provisioning_cron">
<config_path>general/ident_content_provisioning/cron_schedule</config_path>
</job>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment