Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/h/o/hortonworks-sandbox-HEAD/apps/pig/src/pig/views.py   hortonworks-sandbox(Download)
def get_job_result(request):
    job = Job.objects.get(job_id=request.POST['job_id'])
    result = {}
    try:
        result.update(_job_result(request, job))
def show_job_result(request, job_id):
    result = {}
    result['scripts'] = PigScript.objects.filter(saved=True, user=request.user)
    result['udfs'] = UDF.objects.all()
    job = Job.objects.get(job_id=job_id)
def delete_job_object(request, job_id):
    try:
        job = Job.objects.get(job_id=job_id)
    except:
        raise Http404("This job doesn't exist.'")
def notify_job_complited(request, job_id):
    job = Job.objects.get(job_id=job_id)
    job.status = job.JOB_COMPLETED
    job.save()
    job_result = _job_result(request, job)