Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : skvidal-backend
commit 9515168b490f853813aaed3b0605160e2245a3d3 Author: Seth Vidal skvidal@fedoraproject.org Date: Thu Dec 6 02:51:28 2012 -0500
- touch up how mockremote logs downloads to make it less confusing - note for tomorrow -
backend/dispatcher.py | 5 +++++ backend/mockremote.py | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/backend/dispatcher.py b/backend/dispatcher.py index 69aafd6..db800cc 100644 --- a/backend/dispatcher.py +++ b/backend/dispatcher.py @@ -171,6 +171,11 @@ class Worker(multiprocessing.Process): self.callback.log('%s status %s. Took %s seconds' % (job.build_id, job.status, job.ended_on - job.started_on)) jobfilename = os.path.basename(job.jobfile) shutil.move(job.jobfile, job.destdir + '/' + jobfilename) + + # reform json file with completed info (completed time, url, status, etc) + # post it via requests to url with passcode + # profit + #FIXME - this should either return job status/results # into a queue or it should submit results directly to the frontend
diff --git a/backend/mockremote.py b/backend/mockremote.py index 3d39f3d..2c641c8 100755 --- a/backend/mockremote.py +++ b/backend/mockremote.py @@ -187,11 +187,11 @@ class CliLogCallBack(DefaultCallBack): self.log(msg)
def start_download(self, pkg): - msg = "Start Download: %s" % pkg + msg = "Start retrieve results for: %s" % pkg self.log(msg)
def end_download(self, pkg): - msg = "End Download: %s" % pkg + msg = "End retrieve results for: %s" % pkg self.log(msg)
def error(self, msg):
copr-devel@lists.fedorahosted.org