Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计通过

magento-cronjob-developermagento cronjob 开发人员

Agent Skill

magento-cronjob-developer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,552

周安装

66

GitHub Stars

9

下载量

544
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:magento-cronjob-developer(magento cronjob 开发人员)
来源仓库:https://github.com/maxnorm/magento2-agent-skills
仓库路径:skills/magento-cronjob-developer
安装命令:
npx skills add https://github.com/maxnorm/magento2-agent-skills --skill magento-cronjob-developer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/maxnorm/magento2-agent-skills --skill magento-cronjob-developer

简介

用于查找、检索和筛选相关信息。magento-cronjob-developer 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 可结合来源仓库和 README 核验具体用法。
  • 安装前建议确认权限范围和维护状态。
  • 注意是否会触发联网或命令执行。

SKILL.md

Magento 2 Cron Job Developer

Expert specialist in creating reliable, efficient scheduled tasks and background processes that automate critical business operations while maintaining system performance and reliability.

When to Use

  • Creating scheduled tasks
  • Implementing background processing
  • Automating system operations
  • Building data synchronization jobs
  • Implementing maintenance tasks
  • Creating notification systems

Cron Job Architecture

  • Cron Configuration: Master crontab.xml configuration and job scheduling
  • Job Classes: Implement robust job execution classes and error handling
  • Schedule Management: Design flexible scheduling patterns and intervals
  • Resource Management: Optimize memory and processing resource usage
  • Dependency Management: Handle job dependencies and execution order

Cron Development Process

1. Job Planning & Design

  • Requirements Analysis: Understand business requirements and execution patterns
  • Performance Planning: Plan for expected load and resource requirements
  • Error Scenarios: Identify potential failure points and recovery strategies
  • Monitoring Strategy: Plan logging, alerts, and performance tracking
  • Integration Points: Design integration with existing systems and processes

2. Configuration Setup

  • Crontab Configuration: Configure job scheduling in etc/crontab.xml
  • Group Organization: Organize jobs into logical groups and categories
  • Schedule Definition: Define appropriate execution intervals and timing
  • Resource Allocation: Plan memory limits and execution timeouts
  • Environment Configuration: Configure for different environments

3. Job Implementation

  • Job Class Development: Create robust job execution classes
  • Business Logic: Implement core job functionality and operations
  • Data Processing: Handle data validation, transformation, and storage
  • Error Handling: Implement comprehensive error handling and logging
  • Progress Tracking: Create progress monitoring and status reporting

4. Testing & Deployment

  • Unit Testing: Test individual job components and logic
  • Integration Testing: Test job integration with system components
  • Performance Testing: Validate job performance under expected load
  • Error Testing: Test error scenarios and recovery mechanisms
  • Deployment Strategy: Plan safe deployment and rollback procedures

Cron Configuration

crontab.xml Structure

<?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="vendor_module_job" instance="Vendor\Module\Cron\Job" method="execute">
            <schedule>*/5 * * * *</schedule>
        </job>
    </group>
</config>

Job Class Implementation

<?php

declare(strict_types=1);

namespace Vendor\Module\Cron;

use Psr\Log\LoggerInterface;

class Job
{
    /**
     * @param LoggerInterface $logger
     */
    public function __construct(
        private readonly LoggerInterface $logger
    ) {
    }

    /**
     * Execute cron job
     */
    public function execute(): void
    {
        try {
            // Job logic here
            $this->logger->info('Cron job executed successfully');
        } catch (\Exception $e) {
            $this->logger->error('Cron job failed: ' . $e->getMessage());
            throw $e;
        }
    }
}

Specialized Cron Job Types

E-commerce Automation

  • Inventory Updates: Automated stock level synchronization and alerts
  • Price Updates: Scheduled pricing changes and promotional activations
  • Order Processing: Automated order status updates and fulfillment
  • Customer Communications: Automated email campaigns and notifications
  • Report Generation: Scheduled business reports and analytics

Data Management Jobs

  • Data Import/Export: Automated data synchronization with external systems
  • Database Maintenance: Scheduled cleanup, optimization, and archiving
  • Log Management: Automated log rotation, cleanup, and archiving
  • Backup Operations: Scheduled backup creation and validation
  • Cache Management: Automated cache warming and invalidation

System Maintenance

  • Performance Monitoring: Automated system health checks and alerts
  • Security Scans: Scheduled security audits and vulnerability checks
  • Update Processes: Automated system and extension updates
  • Cleanup Operations: Temporary file cleanup and resource optimization
  • Index Management: Automated reindexing and search optimization

Integration Jobs

  • API Synchronization: Scheduled data sync with external APIs
  • Third-party Updates: Automated integration with external services
  • Webhook Processing: Background processing of webhook notifications
  • Data Transformation: Automated data transformation and migration
  • Notification Delivery: Scheduled notification and alert delivery

Best Practices

Performance

  • Batch Processing: Process data in batches to avoid memory issues
  • Resource Management: Monitor and limit memory usage
  • Execution Time: Set appropriate execution timeouts
  • Lock Management: Prevent job overlap and resource conflicts
  • Optimization: Optimize queries and data processing

Reliability

  • Error Handling: Comprehensive error handling and logging
  • Retry Mechanisms: Implement retry logic for transient failures
  • Monitoring: Log job execution and errors
  • Alerting: Set up alerts for job failures
  • Recovery: Implement recovery mechanisms for failed jobs

Security

  • Access Control: Ensure proper permissions for job execution
  • Data Validation: Validate all input data
  • Error Messages: Don't expose sensitive information in error messages
  • Logging: Log security-relevant events
  • Audit Trail: Maintain audit trails for critical operations

Testing

  • Unit Tests: Test job logic in isolation
  • Integration Tests: Test job integration with system components
  • Performance Tests: Validate job performance under load
  • Error Tests: Test error scenarios and recovery
  • Schedule Tests: Verify cron schedule configuration

Monitoring & Debugging

Logging

$this->logger->info('Job started');
$this->logger->debug('Processing item: ' . $itemId);
$this->logger->error('Job failed: ' . $exception->getMessage());

Cron Status

# Check cron status
bin/magento cron:status

# Run cron manually
bin/magento cron:run

# Check cron schedule
bin/magento cron:schedule

References

Focus on creating reliable, efficient cron jobs that automate business operations while maintaining system performance and reliability.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.33%
按下载量换算203

Claude

28.21%
按下载量换算153

Cursor

18.6%
按下载量换算101

Gemini CLI

8.31%
按下载量换算45

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills