mirror of
https://github.com/danog/parallel.git
synced 2024-11-30 04:39:01 +01:00
Shorten job IDs
This commit is contained in:
parent
f4411805d6
commit
fc4c2a07b7
@ -13,8 +13,10 @@ class Job {
|
||||
private $task;
|
||||
|
||||
public function __construct(Task $task) {
|
||||
static $id = 'a';
|
||||
|
||||
$this->task = $task;
|
||||
$this->id = \spl_object_hash($this->task);
|
||||
$this->id = $id++;
|
||||
}
|
||||
|
||||
public function getId(): string {
|
||||
|
Loading…
Reference in New Issue
Block a user