Commit db0d0a16 authored by CAMPION Sebastien's avatar CAMPION Sebastien

uddate job status

parent 1a6316b6
......@@ -87,7 +87,7 @@ def runner_up(request, jobid, digest, nbofchunk, chunkid):
concatenate_chunks_in_onefiletar(outputdir, tarfilepath)
if check_tar_digest_and_extract(datastore, digest, jobid, tarfilepath):
log.info("Results successfully uploaded for jobid %s", jobid)
job.state = 4
job.state = 3
job.save()
return JsonResponse({'status': 'success'}, status=200)
else:
......@@ -121,6 +121,9 @@ def runner_log(request, jobid):
if not job:
log.warning("No job found for id %s and runner %s", jobid, runner)
return HttpResponse(status=401)
job.state = 2
job.save()
log.info("Job logger called for job %s", jobid)
log.info(request)
stream = request.META['wsgi.input']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment