Update job status directly from the worker

Rather than proxying progress reports back to the client, the worker
will now directly update the database.
This commit is contained in:
2010-09-01 20:16:34 +01:00
parent 802fd308c1
commit cf2da4a499
2 changed files with 21 additions and 14 deletions

View File

@@ -45,7 +45,7 @@ function gearman_created_callback($gearman_task) {
$log = $main->log();
$job = RippingCluster_Job::fromId($gearman_task->unique());
$job->updateStatus(RippingCluster_JobStatus::RUNNING);
$job->updateStatus(RippingCluster_JobStatus::QUEUED);
$log->info("Job successfully queued with Gearman", $gearman_task->unique());
}
@@ -54,7 +54,7 @@ function gearman_data_callback($gearman_task) {
$main = RippingCluster_Main::instance();
$log = $main->log();
$log->debug("Got some data from gearman", $gearman_task->unique());
$log->debug("Received data callback from Gearman Task");
}
function gearman_status_callback($gearman_task) {