Erpnext Syntax Scheduler
This skill schedules ERPNext tasks based on syntax rules, streamlining workflows and automating repetitive processes for efficient operations.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add erpnext-syntax-scheduler npx -- -y @trustedskills/erpnext-syntax-scheduler
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"erpnext-syntax-scheduler": {
"command": "npx",
"args": [
"-y",
"@trustedskills/erpnext-syntax-scheduler"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill provides a deterministic syntax reference for scheduling events and managing background jobs within ERPNext, specifically using Frappe's scheduler and frappe.enqueue functionality. It details how to define scheduler events (like hourly, daily, weekly, monthly, and cron jobs) and enqueue tasks with options for queue selection and timeouts. This allows AI agents to automate repetitive processes and streamline workflows in an ERPNext environment by correctly configuring these scheduling mechanisms.
When to use it
- Automating recurring tasks within ERPNext, such as generating reports or processing data.
- Scheduling background jobs that require longer execution times (e.g., importing large datasets).
- Understanding the differences between scheduler event types and queue configurations in different versions of ERPNext (v14 vs v15).
- Ensuring correct syntax when defining new scheduler events or modifying existing ones.
Key capabilities
- Scheduler Event Syntax: Provides a reference for defining events like "all", "hourly", "daily", "weekly", "monthly", and custom cron schedules.
- Background Job Enqueueing: Explains how to use
frappe.enqueuewith options for specifying queue, timeout, and deduplication (v15). - Queue Management: Details available queue types ("short" and "long") and their associated timeouts.
- Version Compatibility: Highlights differences in scheduler tick frequency between ERPNext v14 and v15.
Example prompts
- “Show me the syntax for scheduling a task to run weekly.”
- “How do I enqueue a background job with a timeout of 3600 seconds?”
- "What is the difference in scheduler tick frequency between ERPNext versions 14 and 15?"
Tips & gotchas
- Migration Required: After making any changes to
scheduler_eventsinhooks.py, always runbench migrate. - Version Awareness: Be mindful of version differences (v14 vs v15) when configuring scheduler events, particularly regarding the "all" event's frequency.
- Queue Selection: Utilize the "long" queue for tasks that require longer processing times to avoid timeouts.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.