py3k-gearman

码农软件 · 软件分类 · 作业/任务调度 · 2019-09-05 06:12:43

软件介绍

python3 的 gearman 客户端

A python3 gearman client wraper on libgearman

# client
>>> import gearman
>>> client = gearman.Client()
>>> client.add_servers('localhost:4730')
>>> client.do('echo', 'hello')

# worker
>>> import gearman
>>> worker = gearman.Worker()
>>> worker.add_servers('localhost:4730')
>>> def echo(job):
...     print(job.workload)
...     job.complete(job.workload)
>>> worker.add_func('echo', echo)
>>> worker.work()

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

The Effective Engineer

The Effective Engineer

Edmond Lau / The Effective Bookshelf, Palo Alto, CA. / 2015-3-19 / USD 39.00

Introducing The Effective Engineer — the only book designed specifically for today's software engineers, based on extensive interviews with engineering leaders at top tech companies, and packed with h......一起来看看 《The Effective Engineer》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换