摘要: 背景 由于原生的apscheduler仅支持redis单节点连接,不支持redis集群,所以本人基于原生的RedisJobStore自己修改了一个专门用于连接redis集群的类RedisClusterJobStore 修改点有以下内容: 修改类名RedisJobStore为RedisClusterJ 阅读全文
posted @ 2024-02-28 09:33 Jruing 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 指定具体时间执行 package main import ( "fmt" "time" ) func main() { // 指定执行时间为 2023-11-29 00:00:00 executionTime := time.Date(2023, time.November, 29, 0, 0, 0 阅读全文
posted @ 2023-12-01 09:05 Jruing 阅读(54) 评论(0) 推荐(0) 编辑
摘要: package pkg import ( "fmt" "log" "log/slog" "os" "time" ) var controlLogger *slog.Logger var fileLogger *slog.Logger const ( timeFormat = "2006-01-02" 阅读全文
posted @ 2023-11-23 17:23 Jruing 阅读(57) 评论(0) 推荐(0) 编辑
摘要: Python学习笔记-Schema数据结构及类型校验 使用 schema 库来执行数据结构的校验。schema 是一个简单而强大的库,用于定义和验证 Python 数据结构的约束 And And 代表必选,数据结构里必须包含这个 schema,如下方声明了 name ,则代表这个name必须存在与字 阅读全文
posted @ 2023-11-21 08:44 Jruing 阅读(32) 评论(0) 推荐(0) 编辑
摘要: Centos 7 安装Mongodb社区版 准备环境 操作系统:Centos 7 安装包:https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-7.0.3.tgz windows 可视化工具:Studio 3T(原robot 3t) 阅读全文
posted @ 2023-11-21 08:44 Jruing 阅读(36) 评论(0) 推荐(0) 编辑
摘要: Centos 7 编译安装Python 环境准备 操作系统:Centos 7 版本:Python 3.12 下载 wget https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tgz 编译安装 # 安装依赖 yum -y install gc 阅读全文
posted @ 2023-11-21 08:43 Jruing 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Centos 7 安装Mongodb社区版 准备环境 操作系统:Centos 7 安装包:https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-7.0.3.tgz windows 可视化工具:Studio 3T(原robot 3t) 阅读全文
posted @ 2023-11-10 15:04 Jruing 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 准备工作 操作系统:Centos 7.6 容器环境:Docker 所需工具:kubectl,minikube 安装Docker # 安装yum工具包 yum -y install yum-utils # 添加yum源 yum-config-manager --add-repo http://mirr 阅读全文
posted @ 2023-11-02 15:35 Jruing 阅读(20) 评论(0) 推荐(0) 编辑
摘要: ServerLess学习笔记-搭建FnProject示例 初始化函数目录 # 初始化 fn_demo1 [root@VM-24-9-centos serverless]# fn init --runtime python fn_demo1 Creating function at: ./fn_dem 阅读全文
posted @ 2023-10-23 10:09 Jruing 阅读(10) 评论(0) 推荐(0) 编辑
摘要: ServerLess学习笔记-FnProject常用命令 启动/停止 # 启动 fn start # 停止 fn stop 创建 [root@VM-24-9-centos serverless]# fn create MANAGEMENT COMMAND fn create - Create a n 阅读全文
posted @ 2023-10-23 10:09 Jruing 阅读(5) 评论(0) 推荐(0) 编辑