function progress_end_progress in Background Process 8
End a progress. Sets to 100% (=1).
1 call to progress_end_progress()
- background_process_service_execute in ./
background_process.module - Implements to Execute the service.
File
- progress/
progress.module, line 112 - Progress framework for keeping track of progresses. @todo Force MyISAM for table {progress} to avoid transaction/isolation level problems, and use INSERT DELAYED for performance.
Code
function progress_end_progress($name, $message) {
$current = microtime(TRUE);
return db_update('progress')
->fields([
'progress' => 1,
'message' => $message,
'end_stamp' => $current,
])
->condition('name', $name)
->execute();
}