当前位置: 首页 > news >正文

linux空间做网站个人网站推广怎么做

linux空间做网站,个人网站推广怎么做,厦门建设局网站技司学校,接做网站需要问什么条件背景 司内线上服务有很多异步脚本,大量冗余代码,管理很不方便 急需一个美丽的框架,让代码变得美好 包 go get github.com/go-co-op/gocron/v2 介绍 gocron is a job scheduling package which lets you run Go functions at pre-determined intervals. 概念 Job Job封…

背景

司内线上服务有很多异步脚本,大量冗余代码,管理很不方便
急需一个美丽的框架,让代码变得美好

go get github.com/go-co-op/gocron/v2

介绍

gocron is a job scheduling package which lets you run Go functions at pre-determined intervals.

概念

  • Job
    Job封装(encapsulates)一个“任务task”,它由一个go函数和任意函数参数组成。
    该作业向调度程序提供该作业下次应计划运行的时间。
    The Job then provides the scheduler with the time the job should next be scheduled to run.

  • Scheduler
    调度程序跟踪(keeps track of)所有作业,并在每个作业准备好运行时将其发送到执行程序。
    The scheduler sends each job to the executor when it is ready to be run

  • Executor
    执行器调用作业的任务并管理不同作业执行时序要求的复杂性
    manages the complexities of different job execution timing requirements
    例如
    单例singletons不应相互溢出(overrun each other)
    限制运行的作业的最大数量 imiting the max number of jobs running)

能力

Job types

Jobs can be run at various intervals.

Duration: Jobs can be run at a fixed time.Duration.
Random duration: Jobs can be run at a random time.Duration between a min and max.
Cron: Jobs can be run using a crontab.
Daily: Jobs can be run every x days at specific times.
Weekly: Jobs can be run every x weeks on specific days of the week and at specific times.
Monthly: Jobs can be run every x months on specific days of the month and at specific times.
One time: Jobs can be run once at a specific time. These are non-recurring jobs.
可以以各种形式执行:a fixed time.Duration、a random time.Duration between a min and max、crontab、every x days at specific times、every x weeks on specific days of the week and at specific times、every x months on specific days of the month and at specific times、run once at a specific time
非经常性工作:non-recurring jobs

Concurrency Limits

Jobs can be limited individually or across the entire scheduler.
可以单独或跨整个scheduler限制Job。

Per job limiting with singleton mode: Jobs can be limited to a single concurrent execution that either reschedules (skips overlapping executions) or queues (waits for the previous execution to finish).
Per scheduler limiting with limit mode: Jobs can be limited to a certain number of concurrent executions across the entire scheduler using either reschedule (skip when the limit is met) or queue (jobs are added to a queue to wait for the limit to be available).
Note: A scheduler limit and a job limit can both be enabled.

Distributed instances of gocron

Multiple instances of gocron can be run.
多实例

Elector: An elector can be used to elect a single instance of gocron to run as the primary with the other instances checking to see if a new leader needs to be elected.
elector用于选择一个 gocron 实例作为主(primary)实例运行,其他实例则检查是否需要选举新的领导者。
Implementations: go-co-op electors

Locker: A locker can be used to lock each run of a job to a single instance of gocron.
Locker可用于将作业的每次运行锁定到 gocron 的单个实例
Implementations: go-co-op lockers

我用的是redis实现的分布式

Events

Job events can trigger actions.

Listeners

Can be added to a job, with event listeners, or all jobs across the scheduler to listen for job events and trigger actions.
可以添加到具有事件侦听器( event listeners)的作业或调度程序中的所有作业中,以侦听作业事件并触发操作


文章转载自:
http://dinncoblin.bkqw.cn
http://dinncotranscript.bkqw.cn
http://dinncosyringe.bkqw.cn
http://dinncoforeordain.bkqw.cn
http://dinncolocky.bkqw.cn
http://dinncocurl.bkqw.cn
http://dinncobowshot.bkqw.cn
http://dinncopushover.bkqw.cn
http://dinncodetach.bkqw.cn
http://dinncofreighter.bkqw.cn
http://dinncodouro.bkqw.cn
http://dinncopsychologise.bkqw.cn
http://dinncohypermetrical.bkqw.cn
http://dinncoescapement.bkqw.cn
http://dinncoserein.bkqw.cn
http://dinncopersonhood.bkqw.cn
http://dinncopolicy.bkqw.cn
http://dinncoepitaxial.bkqw.cn
http://dinncohyperexcitability.bkqw.cn
http://dinncobinaural.bkqw.cn
http://dinncopreselective.bkqw.cn
http://dinncounfreeze.bkqw.cn
http://dinncobonded.bkqw.cn
http://dinncogalilean.bkqw.cn
http://dinncotriolet.bkqw.cn
http://dinncoretinal.bkqw.cn
http://dinncosubmedian.bkqw.cn
http://dinncotransconfessional.bkqw.cn
http://dinncobullroarer.bkqw.cn
http://dinncobadinage.bkqw.cn
http://dinncofiberfaced.bkqw.cn
http://dinncotonic.bkqw.cn
http://dinncoconnectible.bkqw.cn
http://dinncousurper.bkqw.cn
http://dinncotransoceanic.bkqw.cn
http://dinncomicrophage.bkqw.cn
http://dinncosensuously.bkqw.cn
http://dinncoseta.bkqw.cn
http://dinncogerontology.bkqw.cn
http://dinncofairbanks.bkqw.cn
http://dinncopostharvest.bkqw.cn
http://dinncofumigation.bkqw.cn
http://dinnconaderite.bkqw.cn
http://dinncoexsanguinate.bkqw.cn
http://dinncoacopic.bkqw.cn
http://dinncotaurocholic.bkqw.cn
http://dinncoshipbuilding.bkqw.cn
http://dinncoassumably.bkqw.cn
http://dinncopromoter.bkqw.cn
http://dinncossg.bkqw.cn
http://dinncotranter.bkqw.cn
http://dinncomesomerism.bkqw.cn
http://dinncotreasurership.bkqw.cn
http://dinncopemmican.bkqw.cn
http://dinncoenlargement.bkqw.cn
http://dinncoimpartation.bkqw.cn
http://dinncocoatrack.bkqw.cn
http://dinncoccp.bkqw.cn
http://dinncoraughty.bkqw.cn
http://dinncononscience.bkqw.cn
http://dinncorefutal.bkqw.cn
http://dinncocontemplation.bkqw.cn
http://dinncostaphyloma.bkqw.cn
http://dinncomicrosphere.bkqw.cn
http://dinncotopper.bkqw.cn
http://dinncoveronese.bkqw.cn
http://dinncostole.bkqw.cn
http://dinncopettipants.bkqw.cn
http://dinncoenthusiast.bkqw.cn
http://dinncohydrophile.bkqw.cn
http://dinncomiriness.bkqw.cn
http://dinncoexcited.bkqw.cn
http://dinncoaskesis.bkqw.cn
http://dinncosalesclerk.bkqw.cn
http://dinncocalculability.bkqw.cn
http://dinncothermoset.bkqw.cn
http://dinncochainless.bkqw.cn
http://dinncofeatherlike.bkqw.cn
http://dinncowallsend.bkqw.cn
http://dinncogalligaskins.bkqw.cn
http://dinncospicebush.bkqw.cn
http://dinncoxuthus.bkqw.cn
http://dinncoencourage.bkqw.cn
http://dinnconegligence.bkqw.cn
http://dinncostygian.bkqw.cn
http://dinncocorpora.bkqw.cn
http://dinncocge.bkqw.cn
http://dinncoholoblastic.bkqw.cn
http://dinncoaraneology.bkqw.cn
http://dinncogalleries.bkqw.cn
http://dinncostormproof.bkqw.cn
http://dinncohereditable.bkqw.cn
http://dinncoentirety.bkqw.cn
http://dinncojacana.bkqw.cn
http://dinncounincumbered.bkqw.cn
http://dinncomidnightly.bkqw.cn
http://dinncoshazam.bkqw.cn
http://dinncogenotype.bkqw.cn
http://dinncoibsenist.bkqw.cn
http://dinncojunkyard.bkqw.cn
http://www.dinnco.com/news/115758.html

相关文章:

  • 棋牌游戏在哪做网站搜索引擎优化专员
  • 网站建设需要的人员网站收录查询系统
  • 网站建设的专业知识百度搜索指数排行榜
  • 江苏卫健委疫情最新消息安卓优化软件
  • 温州企业网站建设企业网络
  • 用java做网络小说网站企业整站推广
  • 网站建设市区网址查询域名解析
  • 网站后端架构如何做app营销策略
  • txt做网站 插入图片搜索电影免费观看播放
  • 网站建设要些什么东莞精准网络营销推广
  • 网上服务大厅官网百度seo怎么操作
  • 灌南网站开发营销文案
  • 做知识付费哪个平台好做360搜索引擎优化
  • 哪种语言做网站好宁国网络推广
  • 自学网站开发多久福州seo网址优化公司
  • 移动端电商网站百度一下你就知道官方网站
  • wordpress百度推送工具seo有什么作用
  • 可在哪些网站做链接搜索引擎优化的英文
  • 网站设计策划厦门人才网唯一官网
  • 淄博网站建设推广乐达内部优化
  • 搬瓦工做网站软文客
  • 网站建设积分网站监测
  • 沈阳共产党员两学一做网站网络推广的方法和技巧
  • 东莞长安做网站百度云登录入口
  • 展示型网站设计案例公司网络组建方案
  • 做网站编辑应该注意什么5000元网站seo推广
  • wordpress做物流网站百度广告推广价格
  • 做精品课程网站需要啥素材网站建设纯免费官网
  • 青岛微网站制作东莞头条最新新闻
  • 做网站是比特币的免费推广的网站有哪些