• Cloud scheduling feature के जरिए दोहराए जाने वाले काम ऑटोमेट किए जा सकते हैं, और कंप्यूटर बंद होने पर भी वे बैकग्राउंड में चल सकते हैं
  • scheduling के तीन तरीके हैं: Cloud, Desktop, और /loop; इनमें execution location और interval setting units अलग हैं
  • वेब, डेस्कटॉप ऐप, और CLI में task name, repository, environment, schedule, connectors तय करके scheduled task बनाया जा सकता है
  • automatic timezone conversion, custom schedules, और MCP connector integration के जरिए Slack, Linear, और Google Drive के साथ integration संभव है
  • डेवलपर्स इससे code review, CI analysis, document sync जैसी continuous automation workflows बना सकते हैं

वेब पर scheduled tasks चलाना

  • cloud-based scheduled tasks के जरिए दोहराए जाने वाले काम ऑटोमेट किए जा सकते हैं
    • ये Anthropic द्वारा managed infrastructure पर चलते हैं, इसलिए उपयोगकर्ता का कंप्यूटर बंद होने पर भी काम जारी रहता है
    • उदाहरण के तौर पर हर सुबह Pull Request review, रात में CI failure analysis, document sync, और साप्ताहिक dependency audit किए जा सकते हैं
    • यह Claude Code on the web के सभी उपयोगकर्ताओं (Pro, Max, Team, Enterprise) के लिए उपलब्ध है

scheduling options की तुलना

  • Claude Code scheduled execution के तीन तरीके support करता है: Cloud, Desktop, और /loop
    • Cloud, Anthropic cloud में चलता है, इसलिए कंप्यूटर बंद होने पर भी काम करता है
    • Desktop और /loop लोकल मशीन पर चलते हैं, और इनमें session persistence तथा file access permissions अलग हैं
  • Cloud tasks में minimum interval 1 hour है, जबकि Desktop और /loop में 1 minute interval सेट किया जा सकता है
  • Cloud अपने आप चलता है और permission prompt के बिना काम करता है, जबकि Desktop में प्रति-task permissions सेट की जा सकती हैं

scheduled task बनाने की प्रक्रिया

  • scheduled tasks को वेब, डेस्कटॉप ऐप, और CLI से बनाया जा सकता है
    • वेब: claude.ai/code/scheduled पर New scheduled task क्लिक करें
    • डेस्कटॉप: Schedule page में New remote task चुनें
    • CLI: /schedule कमांड से interactive setup करें, या /schedule daily PR review at 9am की तरह सीधे निर्दिष्ट करें
  • बनाने के चरण
    • task name और prompt लिखना: क्योंकि यह autonomous execution है, इसलिए prompt स्पष्ट और complete होना चाहिए
    • repository चुनना: GitHub repository जोड़ें, default branch से clone होगा और claude/ prefix branch पर changes push होंगे
    • environment चुनना: network access, environment variables, और install scripts सहित cloud environment तय करें
    • schedule चुनना: default रूप से local time के अनुसार सुबह 9 बजे, और CLI में /schedule update से fine-tuning की जा सकती है
    • connectors की समीक्षा: Slack, Linear, Google Drive जैसे MCP connectors शामिल करने हैं या नहीं, यह चुनें
    • creation complete: बनने के बाद task list में दिखेगा, और अगली scheduled time पर अपने आप चलेगा या Run now से तुरंत चलाया जा सकता है

execution schedule options

  • scheduled intervals में automatic timezone conversion support है और यह तय किए गए local time पर चलता है
  • execution कुछ मिनट delay हो सकता है, लेकिन हर task के लिए एक consistent offset बना रहता है
  • built-in schedules
    • Hourly: हर घंटे चलेगा
    • Daily: दिन में एक बार, default 9:00 AM
    • Weekdays: केवल कार्यदिवसों में चलेगा
    • Weekly: हफ्ते में एक बार, चुने गए दिन और समय पर चलेगा
  • जैसे हर 2 घंटे में या हर महीने की 1 तारीख को चलने वाले custom schedules को CLI के /schedule update से सेट किया जा सकता है

repository और branch permissions

  • हर execution पर repository को फिर से clone किया जाता है और default branch से शुरू किया जाता है
  • default रूप से केवल claude/ prefix branches पर push किया जा सकता है
  • अगर protected branch में बदलाव करना हो, तो Allow unrestricted branch pushes option से यह restriction हटाई जा सकती है

connectors

  • scheduled tasks, MCP connectors के जरिए external services के साथ interact कर सकते हैं
    • उदाहरण: Slack channel में support requests पढ़कर Linear में issue बनाना
  • default रूप से जुड़े हुए सभी connectors शामिल होते हैं, और जिनकी ज़रूरत न हो उन्हें हटाया जा सकता है
  • connectors को task creation form, Settings > Connectors, और CLI /schedule update में manage किया जा सकता है

environment settings

  • हर task एक cloud environment में चलता है, जहाँ network access, environment variables, और install scripts को नियंत्रित किया जा सकता है
  • API access, dependency installation, और network restrictions जैसी ज़रूरतों के लिए पहले से configuration आवश्यक है
  • default environment (Default) के अलावा custom environments भी बनाए जा सकते हैं

scheduled tasks का management

  • Scheduled list में task पर क्लिक करने से detail page खुलता है
    • repository, connectors, prompt, schedule, और पिछले execution history देखी जा सकती है
  • execution history देखना और interact करना

    • हर run पर क्लिक करने से वह पूरे session के रूप में खुलता है
    • Claude ने क्या किया, कौन से changes किए, Pull Request बनाना, और बातचीत जारी रखना संभव है
    • session title के बगल वाले dropdown से rename, archive, या delete किया जा सकता है
  • task editing और control

    • Run now से तुरंत चलाएँ
    • Repeats toggle से pause या resume करें
    • edit icon से name, prompt, schedule, repository, environment, और connectors बदले जा सकते हैं
    • delete icon से task हटाया जा सकता है (मौजूदा sessions बने रहते हैं)
    • CLI में /schedule list, /schedule update, /schedule run commands से भी management संभव है

संबंधित resources

अभी कोई टिप्पणी नहीं है.

अभी कोई टिप्पणी नहीं है.