class CrystalDoc::DocJob
- CrystalDoc::DocJob
- Reference
- Object
Included Modules
- DB::Mappable
- DB::Serializable
Defined in:
crystaldoc/doc_job.crConstant Summary
-
HISTORICAL_PRIORITY =
-10
-
LATEST_PRIORITY =
1000
Constructors
Class Method Summary
- .count(db : Queriable) : Int64
- .from_rs(rs : DB::ResultSet)
- .in_queue?(db : Queriable, service : String, username : String, project_name : String, version : String) : Bool
- .in_queue?(db : Queriable, version_id : Int32) : Bool
- .remove(db : Queriable, source_url : String, commit_id : String)
- .select(db : Queriable, limit : Int32) : Array(DocJob) | Nil
-
.take(db : Queriable) : Array(DocJob)
Should only be called from a transaction
Instance Method Summary
- #commit_id : String
-
#id : Int32
Job metadata
- #job_age : PG::Interval
- #priority : Int32
-
#source_url : String
Job data
Constructor Detail
Class Method Detail
def self.in_queue?(db : Queriable, service : String, username : String, project_name : String, version : String) : Bool
#
Should only be called from a transaction