Ejemplo n.º 1
0
function any_jobs_running($study)
{
    $jobs = get_jobs_for_study($study);
    foreach ($jobs as $jobid) {
        if (is_job_running($study, $jobid)) {
            return true;
        }
    }
    return false;
}
Ejemplo n.º 2
0
<?php

/*
 * load_jobs
 * Created on: Mar 5, 2013 10:07:08 AM
 * 
 * Copyright 2013 EnginSoft S.p.A.
 * All rights reserved
 */
include_once 'neurocloud/lib/common.php';
$file = $_GET['study'];
$study_idx = $_GET['study_idx'];
$jobs = get_jobs_for_study($file);
$i = 0;
?>
    <table id="jobs_<?php 
echo $study_idx;
?>
" class="jobstable" style="width: 100%">
        <caption>Jobs</caption>
        <thead>
            <tr>
                <th>Job script</th>
                <th>Start date</th>
                <th>Status</th>
                <th>Temp. space</th>
                <th>Commands</th>
            </tr>
        </thead>
        <tbody>
<?php