Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternatives for job ids #100

Open
yann-eugone opened this issue Jul 12, 2023 · 0 comments
Open

Alternatives for job ids #100

yann-eugone opened this issue Jul 12, 2023 · 0 comments
Labels
enhancement New feature or request yokai/batch

Comments

@yann-eugone
Copy link
Contributor

yann-eugone commented Jul 12, 2023

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
@yann-eugone yann-eugone added the enhancement New feature or request label Jul 12, 2023
@yann-eugone yann-eugone self-assigned this Jul 12, 2023
@yann-eugone yann-eugone removed their assignment Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request yokai/batch
Projects
None yet
Development

No branches or pull requests

1 participant