You are here

function background_process_is_started in Background Process 8

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

Implements to Check if the background process has started.

File

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

Code

function background_process_is_started($handle) {
  $old_db = Database::setActiveConnection('background_process');
  $progress = progress_get_progress($handle);
  Database::setActiveConnection($old_db);
  return !empty($progress);
}