You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
47 KiB
JavaScript

1 year ago
"use strict";(self.webpackChunkfurion=self.webpackChunkfurion||[]).push([[3662],{6362:(r,n,e)=>{e.r(n),e.d(n,{assets:()=>a,contentTitle:()=>i,default:()=>j,frontMatter:()=>l,metadata:()=>d,toc:()=>h});var c=e(5893),s=e(1151),o=e(510),t=e(4996);const l={id:"cron",title:"26.2 Cron \u8868\u8fbe\u5f0f",sidebar_label:"26.2 Cron \u8868\u8fbe\u5f0f"},i=void 0,d={id:"cron",title:"26.2 Cron \u8868\u8fbe\u5f0f",description:"\ud83d\udcdd \u6a21\u5757\u66f4\u65b0\u65e5\u5fd7",source:"@site/docs/cron.mdx",sourceDirName:".",slug:"/cron",permalink:"/docs/cron",draft:!1,unlisted:!1,editUrl:"https://gitee.com/dotnetchina/Furion/tree/v4/handbook/docs/cron.mdx",tags:[],version:"current",lastUpdatedBy:"KaneLeung",lastUpdatedAt:1692082003,formattedLastUpdatedAt:"Aug 15, 2023",frontMatter:{id:"cron",title:"26.2 Cron \u8868\u8fbe\u5f0f",sidebar_label:"26.2 Cron \u8868\u8fbe\u5f0f"},sidebar:"docs",previous:{title:"26.1 \u8c03\u5ea6\u4f5c\u4e1a",permalink:"/docs/job"},next:{title:"26.3 \u4efb\u52a1\u961f\u5217",permalink:"/docs/task-queue"}},a={},h=[{value:"26.2.1 \u5173\u4e8e <code>Cron</code> \u8868\u8fbe\u5f0f",id:"2621-\u5173\u4e8e-cron-\u8868\u8fbe\u5f0f",level:2},{value:"26.2.2 \u5feb\u901f\u5165\u95e8",id:"2622-\u5feb\u901f\u5165\u95e8",level:2},{value:"26.2.2.1 \u5e38\u89c4\u683c\u5f0f",id:"26221-\u5e38\u89c4\u683c\u5f0f",level:3},{value:"26.2.2.2 \u652f\u6301\u5e74\u4efd",id:"26222-\u652f\u6301\u5e74\u4efd",level:3},{value:"26.2.2.3 \u652f\u6301\u79d2\u6570",id:"26223-\u652f\u6301\u79d2\u6570",level:3},{value:"26.2.2.4 \u652f\u6301\u79d2\u548c\u5e74",id:"26224-\u652f\u6301\u79d2\u548c\u5e74",level:3},{value:"26.2.2.5 <code>Macro</code> \u6807\u8bc6\u7b26\u548c\u9759\u6001\u5c5e\u6027",id:"26225-macro-\u6807\u8bc6\u7b26\u548c\u9759\u6001\u5c5e\u6027",level:3},{value:"26.2.2.6 <code>Macro At</code> \u6807\u8bc6\u7b26",id:"26226-macro-at-\u6807\u8bc6\u7b26",level:3},{value:"26.2.3 <code>Cron</code> \u5404\u5b57\u6bb5\u8bf4\u660e",id:"2623-cron-\u5404\u5b57\u6bb5\u8bf4\u660e",level:2},{value:"26.2.4 <code>CronStringFormat</code> \u683c\u5f0f\u5316",id:"2624-cronstringformat-\u683c\u5f0f\u5316",level:2},{value:"26.2.5 \u5728\u7ebf\u751f\u6210 <code>Cron</code> \u8868\u8fbe\u5f0f",id:"2625-\u5728\u7ebf\u751f\u6210-cron-\u8868\u8fbe\u5f0f",level:2},{value:"26.2.6 \u5b9e\u73b0\u7b80\u5355\u5b9a\u65f6\u4efb\u52a1",id:"2626-\u5b9e\u73b0\u7b80\u5355\u5b9a\u65f6\u4efb\u52a1",level:2},{value:"26.2.6.1 <code>while</code> + <code>Task</code> \u65b9\u5f0f",id:"26261-while--task-\u65b9\u5f0f",level:3},{value:"26.2.6.2 <code>BackgroundService</code> \u65b9\u5f0f",id:"26262-backgroundservice-\u65b9\u5f0f",level:3},{value:"26.2.7 <code>Crontab</code> \u5bf9\u8c61\u5c5e\u6027\u548c\u65b9\u6cd5",id:"2627-crontab-\u5bf9\u8c61\u5c5e\u6027\u548c\u65b9\u6cd5",level:2},{value:"26.2.8 \u53cd\u9988\u4e0e\u5efa\u8bae",id:"2628-\u53cd\u9988\u4e0e\u5efa\u8bae",level:2}];function x(r){const n={a:"a",admonition:"admonition",code:"code",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,s.a)(),...r.components},{Details:e}=n;return e||function(r,n){throw new Error("Expected "+(n?"component":"object")+" `"+r+"` to be defined: you likely forgot to import, pass, or provide it.")}("Details",!0),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(e,{children:[(0,c.jsx)("summary",{children:"\ud83d\udcdd \u6a21\u5757\u66f4\u65b0\u65e5\u5fd7"}),(0,c.jsx)("div",{children:(0,c.jsx)("div",{children:(0,c.jsxs)(n.ul,{children:["\n",(0,c.jsxs)(n.li,{children:["\n",(0,c.jsx)(n.p,{children:(0,c.jsx)(n.strong,{children:"\u65b0\u7279\u6027"})}),"\n",(0,c.jsxs)(n.ul,{children:["\n",(0,c.jsxs)(n.li,{children:["\xa0",(0,c.jsx)(o.Z,{children:"\u65b0\u589e"})," ",(0,c.jsx)(n.code,{children:"Crontab.IsValid(...)"})," \u9759\u6001\u65b9\u6cd5\uff0c\u5224\u65ad ",(0,c.jsx)(n.code,{children:"Cron"})," \u8868\u8fbe\u5f0f\u662f\u5426\u6709\u6548 ",(0,c.jsx)("sup",{children:"4.8.7.17"})," ",(0,c.jsx)("sup",{children:"\u23f1\ufe0f2023.03.20"})," ",(0,c.jsx)(n.a,{href:"https://gitee.com/dotnetchina/Furion/issues/I6OHO4",childr