Skip to content

RethinkDB model for Jobs queue (used in conjunction with beanstalkd)

License

Notifications You must be signed in to change notification settings

wordtreefoundation/rethinkdb_job

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RethinkDBJob

A simple model that tracks job information in RethinkDB for wordtreefoundation/api-scripts. Used in conjunction with beanstalkd (but not strictly required as a dependency).

Usage

require 'rethinkdb_job'

job = RethinkDBJob.new

job_id = job.create

job.set_timestamp(job_id, :job_start)

Find a job:

data = job.find(job_id)
# => {
#   "id" => "9f8c8831-3e31-4366-a91c-aa2e1d1c8d4b",
#   "job_start"=>2014-08-10 00:00:00 -0600
# }

About

RethinkDB model for Jobs queue (used in conjunction with beanstalkd)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages