nocobase-app-plugin-scheduler
यह क्या करती है
यह स्किल NocoBase 3 ऐप में तय समय पर चलने वाले कार्य बनाने में डेवलपर्स का मार्गदर्शन करती है, जिनकी स्थिति business एडमिन को दिखती है। यह उन टीमों के लिए है जिन्हें दोहराए जाने वाले कामों पर नज़र रखनी है।
कब इस्तेमाल करें
- ✓जब business एडमिन को ऐप में दोहराए जाने वाले कार्य देखने और ट्रैक करने हों।
- ✓जब आप कोड में schedule परिभाषित करना चाहें, जिसकी स्थिति UI में दिखे।
- ✓जब किसी background task को UI दृश्यता की ज़रूरत न हो, और आपको दूसरा job तरीका चुनना हो।
Skill का लिंक
https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-scheduler/skills/nocobase-app-plugin-scheduler/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप एक रात का कार्य जोड़ सकते हैं जो पुराने ऑर्डर archive करे, और एडमिन उसके runs देख सकें और उसे बंद कर सकें?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI schedule और उसका execution logic कोड में परिभाषित करता है, target रजिस्टर करता है, और अंतिम स्थिति रिपोर्ट करता है। Scheduler trigger का इतिहास रखता है, ताकि एडमिन हर run ट्रैक कर सकें।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Develop Scheduled Tasks in an Application
Use the installed version's public exports, without importing plugin internals. The application owns business logic, schedule declarations, Providers, permissions, and deployment timing. Scheduler owns scheduling projections, trigger history, and execution state. The plugin's skills/ directory is the source of truth; do not edit the synchronized application copy under .agents/skills/.
Decide Whether to Use Scheduler
The primary reason to define tasks through Scheduler is UI observability for business administrators. Developers define schedules and execution logic in code. Business administrators use the task list and detail pages the application builds on the Scheduler API to view schedules, track individual executions, and enable or disable tasks when authorized.
Tasks that do not need to be viewed and tracked through the UI must not be managed by the Scheduler plugin. Give recurring ones a ScheduleExecutor of their own from the application's jobs service (jobExecutorServiceToken in @nocobase/app-server/jobs), and one-off background work a JobExecutor; the application development Skill describes both. For administrator-visible tasks, deliver Client registration, access permissions, meaningful task names, and accurate final execution status together; successful server-side dispatch alone is incomplete.
Then Choose the Execution Model
After deciding to use Scheduler, choose according to business complexity:
| Scenario | Choice | Implementation boundary |
|---|---|---|
| Periodic cleanup, cache refresh, a single report, or one business Service call | Own target type | Short operations may complete directly; hand lengthy work to a JobExecutor |
| A simple operation that happens hourly | Own target type | Cron alone is not a reason to introduce a heavier execution system |
| Immediate asynchronous execution | JobExecutor |
No Cron Schedule is needed |
| A one-time delay, such as ten minutes after a request | Queue delay |
No Cron Schedule is needed; JobExecutor has no delay |
| Another execution system with its own references, status queries, and completion protocol | Own target type | The same registerTarget() call, with inspect() and completion reporting for work that finishes later |
Every schedule points at a registered target; registerTarget() is the target extension surface, and there is no built-in target type. A target does not guarantee exactly-once external business effects; design business idempotency.
Read by Task
- To create or change a schedule, read Definitions, Registration, and Synchronization.
- To register or review a target, hand its work to a
JobExecutor, report completion, or diagnose a historical occurrence after retargeting, read Target Extensions and Execution Protocol. - To integrate or review the UI/API and permissions, interpret status, or diagnose missing definitions, read Operations and Verification, including the complete management route table, separate status dimensions, and application identity checks.
Development Loop
- Establish which tasks and execution records administrators need to see. Check Server/Client/CLI registration, page permissions, the application's
jobsconfiguration (aredisadapter for more than one instance;memoryserves one process) andJobExecutorServiceProvidercomposition and target availability, then choose or register the target type. - Implement business logic and Providers in application source, and call
schedulerServiceToken.defineSchedule(definition)with an application-wide stable key from that Provider'sregister()/boot(). - Validate payload/inpu
अक्सर पूछे जाने वाले सवाल
क्या हर background job को Scheduler इस्तेमाल करना चाहिए?
नहीं। स्किल कहती है कि जिन कार्यों को UI दृश्यता नहीं चाहिए, उन्हें इसका उपयोग नहीं करना चाहिए।
कार्य चालू या बंद कौन कर सकता है?
UI के ज़रिए अधिकृत business एडमिन।
क्या Scheduler business logic रखता है?
नहीं। logic application का होता है, और Scheduler केवल scheduling और स्थिति संभालता है।
जानकारी
लेखक का मूल विवरण
Develop scheduled tasks in NocoBase 3 that business administrators need to view and track through the application UI. Define schedules in code, register the target a schedule points at, integrate execution status, and report completion. Do not use Scheduler to manage tasks that do not need UI visibility.
repo: nocobase/nocobase
लोकप्रियता
- GitHub स्टार
- 25k
- रैंकिंग में स्थान
- #10105
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
nocobase-app-development
25kयह आपके एजेंट को पूर्ण NocoBase 3 व्यावसायिक एप्लिकेशन के लिए पेज, routes, डेटा, अनुमतियाँ और टेस्ट बनाने में मदद करती है।
shadcn
25kयह आपके एजेंट को वेब प्रोजेक्ट में shadcn/ui कंपोनेंट खोजने, जोड़ने, ठीक करने और स्टाइल करने में मदद करती है, उनके आधिकारिक दस्तावेज़ और registries का उपयोग करके।
nocobase-app-plugin-development
25kयह आपके एजेंट को मौजूदा NocoBase 3 ऐप के भीतर plugins बनाने और उनकी देखभाल करने में मदद करती है, जिसमें server, client, database और registration के हिस्से शामिल हैं।
nocobase-app-upgrade
25kयह आपके एजेंट को NocoBase ऐप को नए template रिलीज़ तक अपग्रेड करने में मदद करती है, template के बदलाव लाते हुए आपका अपना काम बनाए रखते हुए।
मिलती-जुलती skills
knowledge-automation
394kयह आपके एजेंट को एक नियमित काम सेट करने देती है जो समय-सारणी पर Knowledge vault में नई सामग्री जोड़ता है, फिर जांचता है कि काम चल रहा है।
knowledge-source-ingest
394kयह आपके एजेंट को चैट चैनल, फ़ीड या मेलबॉक्स से आई नई चीज़ों से Knowledge vault अपडेट रखने देती है, बिना वह दोबारा जोड़े जो पहले से है।
benchmark
280kयह आपके एजेंट को code की speed और performance नापने में मदद करता है। यह पक्का करने और धीमेपन की समस्याएँ ढूँढने में काम आता है।