- // Inherit the priority
- $queue = dba::select('workerqueue', array('priority'), array('pid' => getmypid()), array('limit' => 1));
- if (dbm::is_result($queue)) {
- $priority = (int)$queue['priority'];
- logger('inherited priority: '.$priority);
- } else {
- // Normally this shouldn't happen.
- $priority = PRIORITY_HIGH;
- logger('no inherited priority! Something is wrong.');
- }
-