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

网站如何做响应式布局在百度上怎么注册网站

网站如何做响应式布局,在百度上怎么注册网站,浏览器兼容测试网站,湘潭营销型网站建设背景 司内线上服务有很多异步脚本,大量冗余代码,管理很不方便 急需一个美丽的框架,让代码变得美好 包 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://www.mmbaike.com/news/97294.html

相关文章:

  • 天元建设集团有限公司社会代码西安网站seo服务
  • 鸿基建设工程有限公司网站推广普通话的宣传标语
  • dedecms手机网站模板安装教程企业网站制作开发
  • 天津网站制作建设搜索引擎优化的策略主要有
  • 如何做网站链接使用新产品宣传推广策划方案
  • 网上做设计兼职哪个网站好点网络服务提供者不是网络运营者
  • 免费制作头像的网站2023很有可能再次封城吗
  • 上海大众汽车网站哪家公司做的江西seo
  • 便民网站开发厦门seo排名外包
  • 西安做营销型网站网络优化seo
  • 请人建网站应注意什么无锡百度正规公司
  • 关于水果怎么做网站近三天时政热点
  • 做爰全过程免费的教网站seo小白入门教学
  • 用ps做nba网站教程精准营销的三要素
  • 武威建设厅网站青岛招聘seo
  • 鼠标放上去图片放大的网站百度seo点击器
  • 大连网站开发建信息流优化师是什么
  • 香港服务器的网站可以做经营么北京专业网站优化
  • wordpress速度优化存seo 服务
  • 网站登不了企业建设网银搜百度盘
  • wordpress 隐藏侧边栏网站网络推广优化
  • 网站建设主要问题免费发广告的平台
  • 如何撤销网站备案今日头条新闻最新
  • 推荐几个好看的网站今日足球比赛分析推荐
  • 泰兴市建设局网站公司seo推广营销网站
  • 淄博网站建设报价长春今日头条新闻
  • 政府网站方案书seo关键词优化的技巧和方法
  • 网站正在建设中的网页怎么做域名查询站长之家
  • 一流的锦州网站建设怎么推广app
  • wordpress注册字段湖南靠谱seo优化报价