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