You are here

function background_process_ass_cronapi in Background Process 8

Same name and namespace in other branches
  1. 6 background_process_ass/background_process_ass.module \background_process_ass_cronapi()
  2. 7.2 background_process_ass/background_process_ass.module \background_process_ass_cronapi()
  3. 7 background_process_ass/background_process_ass.module \background_process_ass_cronapi()

Implements hook_cronapi().

File

background_process_ass/background_process_ass.module, line 27
Implements Background Process Ass Module. @todo Implement admin interface. @todo Fix runtime check of running process.

Code

function background_process_ass_cronapi($op, $job = NULL) {
  switch ($op) {
    case 'list':
      return [
        'background_process_ass_cron' => t('Unlock dead processes'),
      ];
    case 'rule':
      return '* * * * *';
    case 'configure':
      return 'admin/config/system/background-process/ass';
  }
}