class CrystalDoc::DocJob

Included Modules

Defined in:

crystaldoc/doc_job.cr

Constant Summary

HISTORICAL_PRIORITY = -10
LATEST_PRIORITY = 1000

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(rs : DB::ResultSet) #

[View source]

Class Method Detail

def self.count(db : Queriable) : Int64 #

[View source]
def self.from_rs(rs : DB::ResultSet) #

[View source]
def self.in_queue?(db : Queriable, service : String, username : String, project_name : String, version : String) : Bool #

[View source]
def self.in_queue?(db : Queriable, version_id : Int32) : Bool #

[View source]
def self.remove(db : Queriable, source_url : String, commit_id : String) #

[View source]
def self.select(db : Queriable, limit : Int32) : Array(DocJob) | Nil #

[View source]
def self.take(db : Queriable) : Array(DocJob) #

Should only be called from a transaction


[View source]

Instance Method Detail

def commit_id : String #

[View source]
def id : Int32 #

Job metadata


[View source]
def job_age : PG::Interval #

[View source]
def priority : Int32 #

[View source]
def source_url : String #

Job data


[View source]