Package coprs :: Package logic :: Module builds_logic :: Class BuildsLogic
[hide private]
[frames] | no frames]

Class BuildsLogic

source code


Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
get(cls, build_id) source code
 
get_build_tasks(cls, status) source code
 
get_recent_tasks(cls, user=None, limit=None) source code
 
get_build_task_queue(cls)
Returns BuildChroots which are - waiting to be built or
source code
 
get_multiple(cls, user, **kwargs) source code
 
get_waiting(cls)
Return builds that aren't both started and finished (if build start submission fails, we still want to mark the build as non-waiting, if it ended) this has very different goal then get_multiple, so implement it alone
source code
 
get_by_ids(cls, ids) source code
 
get_by_id(cls, build_id) source code
 
add(cls, user, pkgs, copr, repos=None, memory_reqs=None, timeout=None, chroots=None) source code
 
update_state_from_dict(cls, build, upd_dict) source code
 
cancel_build(cls, user, build) source code
 
delete_build(cls, user, build) source code
 
last_modified(cls, copr)
Get build datetime (as epoch) of last successfull build
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

get_build_task_queue(cls)
Class Method

source code 

Returns BuildChroots which are - waiting to be built or

  • older than 2 hours and unfinished

last_modified(cls, copr)
Class Method

source code 

Get build datetime (as epoch) of last successfull build

:arg copr: object of copr