Package coprs :: Package views :: Package backend_ns :: Module backend_general
[hide private]
[frames] | no frames]

Module backend_general

source code

Functions [hide private]
 
dist_git_importing_queue()
Return list of builds that are waiting for dist git to import the sources.
source code
 
dist_git_upload_completed(*args, **kwargs)
Mark BuildChroot in a Build as uploaded, which means:
source code
 
waiting()
Return a single action and a single build.
source code
 
update(*args, **kwargs) source code
 
starting_build(*args, **kwargs)
Check if the build is not cancelled and set it to running state
source code
 
defer_build(*args, **kwargs)
Defer build (keep it out of waiting jobs for some time).
source code
 
reschedule_all_running(*args, **kwargs)
Add-hoc handle.
source code
 
reschedule_build_chroot(*args, **kwargs) source code
Variables [hide private]
  log = logging.getLogger(__name__)
  __package__ = 'coprs.views.backend_ns'
Function Details [hide private]

dist_git_importing_queue()

source code 

Return list of builds that are waiting for dist git to import the sources.

Decorators:
  • @backend_ns.route("/importing/")

dist_git_upload_completed(*args, **kwargs)

source code 

Mark BuildChroot in a Build as uploaded, which means:

  • set it to pending state
  • set BuildChroot.git_hash
  • if it's the last BuildChroot in a Build:
    • delete local srpm

BuildChroot is identified with task_id which is build id + git branch name

  • For example: 56-f22 -> build 55, chroots fedora-22-*
Decorators:
  • @backend_ns.route("/import-completed/", methods= ["POST", "PUT"])
  • @misc.backend_authenticated

waiting()

source code 

Return a single action and a single build.

Decorators:
  • @backend_ns.route("/waiting/")

update(*args, **kwargs)

source code 
Decorators:
  • @backend_ns.route("/update/", methods= ["POST", "PUT"])
  • @misc.backend_authenticated

starting_build(*args, **kwargs)

source code 

Check if the build is not cancelled and set it to running state

Decorators:
  • @backend_ns.route("/starting_build/", methods= ["POST", "PUT"])
  • @misc.backend_authenticated

defer_build(*args, **kwargs)

source code 

Defer build (keep it out of waiting jobs for some time).

Decorators:
  • @backend_ns.route("/defer_build/", methods= ["POST", "PUT"])
  • @misc.backend_authenticated

reschedule_all_running(*args, **kwargs)

source code 

Add-hoc handle. Remove after implementation of persistent task handling in copr-backend

Decorators:
  • @backend_ns.route("/reschedule_all_running/", methods= ["POST"])
  • @misc.backend_authenticated

reschedule_build_chroot(*args, **kwargs)

source code 
Decorators:
  • @backend_ns.route("/reschedule_build_chroot/", methods= ["POST", "PUT"])
  • @misc.backend_authenticated