Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[24807] Adding cron group change #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Model/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ public static function getNextJobFromQueue()
\Reflektion\Catalogexport\Model\Job::STATUS_SCHEDULED
. " not in (select status from {$table} mbj2 where mbj2.job_id = main_table.dependent_on_job_id) "
)
->where(
\Reflektion\Catalogexport\Model\Job::STATUS_RUNNING
. " not in (select status from {$table} mbj2 where mbj2.job_id = main_table.dependent_on_job_id) "
)
->order('job_id')
->limit(1);
$dateTime = $objectManager->get("\Magento\Framework\Stdlib\DateTime\DateTime");
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Reflektion Search and Recommendation experience. http://reflektion.com/",
"homepage": "https://github.com/Reflektion/reflektion_magento_2",
"type": "magento2-module",
"version": "1.0.4",
"version": "1.0.5",
"license": [
"https://opensource.org/licenses/osl-3.0.php"
],
Expand Down
12 changes: 12 additions & 0 deletions etc/cron_groups.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/cron_groups.xsd">
<group id="rfk_group">
<schedule_generate_every>1</schedule_generate_every>
<schedule_ahead_for>60</schedule_ahead_for>
<schedule_lifetime>120</schedule_lifetime>
<history_cleanup_every>60</history_cleanup_every>
<history_success_lifetime>300</history_success_lifetime>
<history_failure_lifetime>600</history_failure_lifetime>
<use_separate_process>1</use_separate_process>
</group>
</config>
10 changes: 5 additions & 5 deletions etc/crontab.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0"?>

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
<group id="default">
<job name="export_feed_cron" instance="Reflektion\Catalogexport\Cron\ExportFeedCron" method="processDailyFeeds">
<schedule>*/1 * * * *</schedule>
</job>
</group>
<group id="rfk_group">
<job name="export_feed_cron" instance="Reflektion\Catalogexport\Cron\ExportFeedCron" method="processDailyFeeds">
<schedule>*/1 * * * *</schedule>
</job>
</group>
</config>
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Reflektion_Catalogexport" setup_version="1.0.4" />
<module name="Reflektion_Catalogexport" setup_version="1.0.5" />
</config>