Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
M2 content provisioning
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TechDivision Public
M2 content provisioning
Commits
331567c2
Commit
331567c2
authored
1 month ago
by
Eduarda Lentz Rodrigues da Silva
Browse files
Options
Downloads
Patches
Plain Diff
ZERO-162 Created config to cron job and changed id value
parent
fe73457f
No related branches found
Branches containing commit
No related tags found
1 merge request
!46
ZERO-162-changes
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
etc/adminhtml/system.xml
+9
-3
9 additions, 3 deletions
etc/adminhtml/system.xml
etc/config.xml
+31
-0
31 additions, 0 deletions
etc/config.xml
etc/cron_groups.xml
+1
-1
1 addition, 1 deletion
etc/cron_groups.xml
etc/crontab.xml
+1
-1
1 addition, 1 deletion
etc/crontab.xml
with
42 additions
and
5 deletions
etc/adminhtml/system.xml
+
9
−
3
View file @
331567c2
...
...
@@ -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 * * * *)
</c
omment>
<comment
model=
"Firegento\ContentProvisioning\Model\Config\CronExpressionC
omment
"
/
>
</field>
</group>
</section>
...
...
This diff is collapsed.
Click to expand it.
etc/config.xml
0 → 100644
+
31
−
0
View file @
331567c2
<?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>
This diff is collapsed.
Click to expand it.
etc/cron_groups.xml
+
1
−
1
View file @
331567c2
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
etc/crontab.xml
+
1
−
1
View file @
331567c2
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment