0

Magento cron は、1 つのモジュールを除くすべてのモジュールで、私たちのサイトで正常に動作しています。このモジュールは Google の信頼できるストアです。この問題は、他の magento ユーザーからも報告されています。

cron_schedule テーブルを調べたところ、このモジュールの保留中のタスクはありません。このモジュールの cron タスクを cron_schedule テーブルに手動で挿入したところ、このモジュールは本来の機能を正確に実行しました。では、この cron ジョブのこのモジュールの問題は何でしょうか? これが config.xml です。この問題を修正すれば、モジュールは問題ないと思います。

<?xml version="1.0"?>
<!--
/**
 * Magento Enterprise Edition
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Magento Enterprise Edition License
 * that is bundled with this package in the file LICENSE_EE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.magentocommerce.com/license/enterprise-edition
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category    Mage
 * @package     Mage_GoogleTrustedStore
 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://www.magentocommerce.com/license/enterprise-edition
 */
-->
<config>
    <modules>
        <Mage_GoogleTrustedStore>
            <version>1.6.0.0</version>
        </Mage_GoogleTrustedStore>
    </modules>
    <global>
        <helpers>
            <googletrustedstore>
                <class>Mage_GoogleTrustedStore_Helper</class>
            </googletrustedstore>
        </helpers>
        <models>
            <googletrustedstore>
                <class>Mage_GoogleTrustedStore_Model</class>
            </googletrustedstore>
        </models>
        <resources>
            <googletrustedstore_setup>
                <setup>
                    <module>Mage_GoogleTrustedStore</module>
                </setup>
            </googletrustedstore_setup>
        </resources>
        <blocks>
            <googletrustedstore>
                <class>Mage_GoogleTrustedStore_Block</class>
            </googletrustedstore>
        </blocks>
        <googletrustedstore>
            <google_group_email>mage-google-trusted-store-news@googlegroups.com</google_group_email>
            <order_cancellation_reasons>
                <BuyerCanceled>Buyer Canceled</BuyerCanceled>
                <MerchantCanceled>Merchant Canceled</MerchantCanceled>
                <DuplicateInvalid>Duplicate Invalid</DuplicateInvalid>
                <FraudFake>Fraud Fake</FraudFake>
            </order_cancellation_reasons>
            <ftp_host>uploads.google.com</ftp_host>
            <carriers>
                <main>
                    <ups>UPS</ups>
                    <fedex>FedEx</fedex>
                    <usps>USPS</usps>
                </main>
                <other>
                    <dhl>DHL</dhl>
                    <dhlint>DHL</dhlint>
                </other>
            </carriers>
        </googletrustedstore>
    </global>
    <default>
        <google>
            <trustedstore>
                <enabled>1</enabled>
                <default_order_cancellation_reason>BuyerCanceled</default_order_cancellation_reason>
                <estimated_ship_date>3</estimated_ship_date>
            </trustedstore>
        </google>
    </default>
    <frontend>
        <layout>
            <updates>
                <googletrustedstore>
                    <file>googletrustedstore.xml</file>
                </googletrustedstore>
            </updates>
        </layout>
        <events>
            <checkout_multishipping_controller_success_action>
                <observers>
                    <googletrustedstore>
                        <type>model</type>
                        <class>googletrustedstore/observer</class>
                        <method>collectMultishippingOrderIds</method>
                    </googletrustedstore>
                </observers>
            </checkout_multishipping_controller_success_action>
        </events>
    </frontend>
    <adminhtml>
        <translate>
            <modules>
                <Mage_GoogleShopping>
                    <files>
                        <default>Mage_GoogleTrustedStore.csv</default>
                    </files>
                </Mage_GoogleShopping>
            </modules>
        </translate>
        <layout>
            <updates>
                <googletrustedstore>
                    <file>googletrustedstore.xml</file>
                </googletrustedstore>
            </updates>
        </layout>
        <events>
            <sales_order_save_before>
                <observers>
                    <googletrustedstore>
                        <type>model</type>
                        <class>googletrustedstore/observer</class>
                        <method>addCancellationReasonToOrder</method>
                    </googletrustedstore>
                </observers>
            </sales_order_save_before>
            <sales_convert_order_to_quote>
                <observers>
                    <googletrustedstore>
                        <type>model</type>
                        <class>googletrustedstore/observer</class>
                        <method>addCancellationReasonToSession</method>
                    </googletrustedstore>
                </observers>
            </sales_convert_order_to_quote>
            <checkout_submit_all_after>
                <observers>
                    <googletrustedstore>
                        <type>model</type>
                        <class>googletrustedstore/observer</class>
                        <method>collectAdminOrderId</method>
                    </googletrustedstore>
                </observers>
            </checkout_submit_all_after>
            <controller_action_predispatch_adminhtml_sales_order_index>
                <observers>
                    <googletrustedstore>
                        <type>model</type>
                        <class>googletrustedstore/observer</class>
                        <method>addOrderGridBlocksRenderingObserver</method>
                    </googletrustedstore>
                </observers>
            </controller_action_predispatch_adminhtml_sales_order_index>
        </events>
    </adminhtml>
    <crontab>
        <jobs>
            <googletrustedstore_generate_feeds>
                <schedule>
                    <cron_expr>0/20 * * * *</cron_expr>
                </schedule>
                <run>
                    <model>googletrustedstore/feeder::generateFeeds</model>
                </run>
            </googletrustedstore_generate_feeds>
            <googletrustedstore_upload_feeds>
                <schedule>
                    <cron_expr>0 2 * * *</cron_expr>
                </schedule>
                <run>
                    <model>googletrustedstore/feeder::uploadFeeds</model>
                </run>
            </googletrustedstore_upload_feeds>
        </jobs>
    </crontab>
</config>
4

1 に答える 1