You are here

function background_process_is_finished in Background Process 8

Same name and namespace in other branches
  1. 6 background_process.module \background_process_is_finished()
  2. 7 background_process.module \background_process_is_finished()

Implements to Check if the background process has finished.

File

./background_process.module, line 547
This module implements a framework for calling funtions in the background.

Code

function background_process_is_finished($handle) {
  $old_db = Database::setActiveConnection('background_process');
  $progress = progress_get_progress($handle);
  Database::setActiveConnection($old_db);
  return empty($progress) || $progress->end;
}