Saturday, February 14, 2015

using sqlite as gearman persistent queue

create sqlite db
sqlite3 gear-queue.db

CREATE TABLE gearman_queue(unique_key TEXT PRIMARY KEY,function_name TEXT,when_to_run INTEGER,priority INTEGER,data BLOB);

vi /etc/default/gearman-job-server

params="gearmand -q libsqlite3 --libsqlite3-db=/tmp/xx.sqlite"

No comments:

Post a Comment