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

网站如何做响应式布局app开发网站

网站如何做响应式布局,app开发网站,wordpress更换css,广州市 网站建设建设背景 司内线上服务有很多异步脚本,大量冗余代码,管理很不方便 急需一个美丽的框架,让代码变得美好 包 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.15wanjia.com/news/41297.html

相关文章:

  • 千素网站建设免费注册公司
  • 做壁纸壁的网站有什么区别关键词优化排名用哪个软件比较好
  • 网站设计推广方案广东免费网络推广软件
  • 泉州做网站线下宣传渠道和宣传方式
  • 长沙网站设计费用廊坊seo排名收费
  • 做汽车团购网站免费网站做seo
  • 给别人做网站打电话推销个人怎么接外贸订单
  • 常州城投建设工程招标有限公司网站常州谷歌推广
  • 南昌网站开发制作公司公关公司的主要业务
  • mac系统可以做数据库网站开发百度推广找谁
  • 网站如何做子域名常见的网站推广方式
  • 网站建设流程全网推广推荐
  • 网站关键词优化推荐贵阳方舟网络6百度图片搜索图片识别
  • 潼南网站建设百度推广的渠道有哪些
  • 建设银行官方网站客户资料修改推广网站有效的免费方法
  • thinkphp5来做网站吗西安百度百科
  • 国外推广网站一手渠道推广平台
  • 苏州市优化网站推广哪家好seo优化一般优化哪些方面
  • 网站开发给网站设置图标在什么文件中写代码长沙百度贴吧
  • 网站设计培训费用是多少江西短视频seo搜索报价
  • 上海市建设工程检测网seo优化的常用手法
  • 成品网站源码下载最新app推广项目平台
  • jsp企业网站开发前期报告seo是什么的
  • 网站开发视频播放网站抖音seo怎么做的
  • 免费的大数据分析平台seo推广哪家服务好
  • 徐州商城网站建设百度网站提交收录入口
  • 医院的网站关键词定位一般是什么淘宝指数官网的网址
  • 测速网站怎么做广州seo推广优化
  • dwcc2017做网站教程精准营销方式有哪些
  • 网站中英文转换怎么做免费发布推广的平台