Package coprs :: Package logic :: Module actions_logic :: Class ActionsLogic
[hide private]
[frames] | no frames]

Class ActionsLogic

source code


Class Methods [hide private]
 
get(cls, action_id)
Return single action identified by `action_id`
source code
 
get_many(cls, action_type=None, result=None) source code
 
get_waiting(cls)
Return actions that aren't finished
source code
 
get_by_ids(cls, ids)
Return actions matching passed `ids`
source code
 
update_state_from_dict(cls, action, upd_dict)
Update `action` object with `upd_dict` data
source code
 
send_createrepo(cls, copr, dirnames=None) source code
 
send_delete_copr(cls, copr) source code
 
get_chroot_builddirs(cls, build)
Creates a dictionary of chroot builddirs for build delete action :type build: models.build
source code
 
get_build_delete_data(cls, build)
Creates data needed for build delete action :type build: models.build
source code
 
send_delete_build(cls, build)
Schedules build delete action :type build: models.Build
source code
 
send_delete_multiple_builds(cls, builds)
Schedules builds delete action for builds belonging to the same project :type build: list of models.Build
source code
 
send_cancel_build(cls, build)
Schedule build cancel.
source code
 
send_update_comps(cls, chroot)
Schedules update comps.xml action
source code
 
send_create_gpg_key(cls, copr)
:type copr: models.Copr
source code
 
send_rawhide_to_release(cls, data) source code
 
send_fork_copr(cls, src, dst, builds_map)
:type src: models.Copr :type dst: models.Copr :type builds_map: dict where keys are forked builds IDs and values are IDs from the original builds.
source code
 
send_build_module(cls, copr, module)
:type copr: models.Copr :type modulemd: str content of module yaml file
source code
 
send_delete_chroot(cls, copr_chroot)
Schedules deletion of a chroot directory from project Useful to remove outdated chroots :type build: models.CoprChroot
source code
 
cache_action_graph_data(cls, type, time, waiting, success, failure) source code
 
get_actions_bucket(cls, start, end, actionType) source code
 
get_cached_action_data(cls, params) source code
 
get_action_graph_data(cls, type) source code
Method Details [hide private]

update_state_from_dict(cls, action, upd_dict)
Class Method

source code 

Update `action` object with `upd_dict` data

Updates result, message and ended_on parameters.

send_cancel_build(cls, build)
Class Method

source code 

Schedule build cancel. The build is marked as canceled immediately, but to not waste the resources we propagate this information to Backend which may deallocate the builder resources.

:type build: models.Build

send_update_comps(cls, chroot)
Class Method

source code 

Schedules update comps.xml action

:type copr_chroot: models.CoprChroot