(PECL gearman >= 0.5.0)
GearmanClient::setCreatedCallback — Set a callback for when a task is queued
$callback
)Sets a function to be called when a task is received and queued by the Gearman job server. The callback should accept a single argument, a GearmanTask oject.
callbackA function to call
성공 시 TRUE를, 실패 시 FALSE를 반환합니다.