class

CrystalDoc::DocJob

Inherits DB::Mappable / DB::Serializable / Reference / Object

Constants

HISTORICAL_PRIORITY = -10
LATEST_PRIORITY = 1000

Constructors

new(rs : DB::ResultSet)
Source

Class methods

count(db : Queriable) : Int64
Source
from_rs(rs : DB::ResultSet)
Source
in_queue?(db : Queriable, service : String, username : String, project_name : String, version : String) : Bool
Source
in_queue?(db : Queriable, version_id : Int32) : Bool
Source
remove(db : Queriable, source_url : String, commit_id : String)
Source
select(db : Queriable, limit : Int32) : Array(DocJob) | Nil
Source
take(db : Queriable) : Array(DocJob)

Should only be called from a transaction

Source

Instance methods

commit_id
Source
id

Job metadata

Source
job_age
Source
priority
Source
source_url

Job data

Source