|
@@ -123,6 +123,7 @@ function drush_tripal_set_user($username) {
|
|
$results = db_query($sql, array(':name' => $username));
|
|
$results = db_query($sql, array(':name' => $username));
|
|
$u = $results->fetchObject();
|
|
$u = $results->fetchObject();
|
|
if (!$u) {
|
|
if (!$u) {
|
|
|
|
+ drush_print(date('Y-m-d H:i:s'));
|
|
drush_print('ERROR: Please provide a valid username (--username argument) for running this job.');
|
|
drush_print('ERROR: Please provide a valid username (--username argument) for running this job.');
|
|
exit;
|
|
exit;
|
|
}
|
|
}
|
|
@@ -131,6 +132,7 @@ function drush_tripal_set_user($username) {
|
|
return $u->uid;
|
|
return $u->uid;
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
|
|
+ drush_print(date('Y-m-d H:i:s'));
|
|
drush_print('ERROR: Please provide a username (--username argument) for running this job.');
|
|
drush_print('ERROR: Please provide a username (--username argument) for running this job.');
|
|
exit;
|
|
exit;
|
|
}
|
|
}
|
|
@@ -199,7 +201,7 @@ function drush_tripal_trp_rerun_job() {
|
|
// --username argument for the fture.
|
|
// --username argument for the fture.
|
|
$user = drush_get_option('user');
|
|
$user = drush_get_option('user');
|
|
$uname = drush_get_option('username');
|
|
$uname = drush_get_option('username');
|
|
- print "USER: '$user', UNAME: '$uname'\n";
|
|
|
|
|
|
+ print date('Y-m-d H:i:s') . ": USER: '$user', UNAME: '$uname'\n";
|
|
if ($user and is_numeric($user)) {
|
|
if ($user and is_numeric($user)) {
|
|
}
|
|
}
|
|
elseif ($user) {
|
|
elseif ($user) {
|
|
@@ -259,9 +261,11 @@ function drush_tripal_trp_get_currjob() {
|
|
"Process ID: " . $job->pid . "\n" .
|
|
"Process ID: " . $job->pid . "\n" .
|
|
"Progress: " . $job->progress . "%\n".
|
|
"Progress: " . $job->progress . "%\n".
|
|
"Current Date: " . date('Y-m-d H:i:s') . "\n";
|
|
"Current Date: " . date('Y-m-d H:i:s') . "\n";
|
|
|
|
+ drush_print(date('Y-m-d H:i:s'));
|
|
drush_print($output);
|
|
drush_print($output);
|
|
}
|
|
}
|
|
if (!$job_pid) {
|
|
if (!$job_pid) {
|
|
|
|
+ drush_print(date('Y-m-d H:i:s'));
|
|
drush_print('There are currently no running jobs.');
|
|
drush_print('There are currently no running jobs.');
|
|
}
|
|
}
|
|
//log to the command line with an OK status
|
|
//log to the command line with an OK status
|