phpphp-resque

How to get jobid from inside job in php-resque?


I'm having first steps with php-resque https://github.com/chrisboulton/php-resque . Anybody knows how can I get jobid inside Job Class ?


Solution

  • You can get the id/token with: $this->job->payload["id"];