后台任务组件 Resque

码农软件 · 软件分类 · 作业/任务调度 · 2019-09-05 07:57:51

软件介绍

resque是基于redis的后台任务组件,能把任何类或模块作为任务在后台执行,且自带前台管理功能,方便查看执行情况。

使用

1. 编写任务

class WorkerClass
  @queue = "demo"
  def self.perform(args)
    sleep 3 
    puts "Doing something complex with  #{args}"
  end
end

2. 进入任务队列

require "resque"
Resque.enqueue(WorkerClass, args)

本文地址:https://codercto.com/soft/d/13908.html

Prometheus: Up & Running

Prometheus: Up & Running

Brian Brazil / O'Reilly Media / 2018-7-9 / USD 49.99

Get up to speed with Prometheus, the metrics-based monitoring system used by tens of thousands of organizations in production. This practical guide provides application developers, sysadmins, and DevO......一起来看看 《Prometheus: Up & Running》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

随机密码生成器
随机密码生成器

多种字符组合密码