Skip to content

Alternatives for job ids #100

Open
Open
@yann-eugone

Description

@yann-eugone

Description
The Yokai\Batch\Factory\JobExecutionIdGeneratorInterface interface allows to generate ids the way you want.

For the moment, there is a single (prod) implementation of this interface: Yokai\Batch\Factory\UniqidJobExecutionIdGenerator that is using the PHP uniqid function.

We should add some alternatives.

Example
Add string $prefix & bool $moreEntropy constructor args to UniqidJobExecutionIdGenerator.

Have at least a bridge with one of these libraries:

  • ramsey/uuid
  • symfony/uid
  • hashids/hashids

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions