Skip to content

#38: Add an auto-incremental id to jobs #179

Merged
yeraydavidrodriguez merged 3 commits into
mainfrom
issue-38-auto-incremental-job-id
May 16, 2022
Merged

#38: Add an auto-incremental id to jobs #179
yeraydavidrodriguez merged 3 commits into
mainfrom
issue-38-auto-incremental-job-id

Conversation

@yeraydavidrodriguez

@yeraydavidrodriguez yeraydavidrodriguez commented Apr 27, 2022

Copy link
Copy Markdown
Collaborator

This will solve #38 : Add autoincremental id to jobs.

This new Job parameter, a number (although a wrapper is going to be created as part of the issue) will be included in the message, mandatorily.

When the first job of a queue is created, the id will be 0 (zero), incrementing for each new job in the queue.

Comment thread __tests__/e2e/main.test.ts Outdated
Comment thread src/message.ts Outdated
Comment thread __tests__/unit/job.test.ts
Comment thread src/commit-subject.ts Outdated
Comment thread src/job.ts Outdated
Comment thread src/job.ts Outdated
Comment thread src/message.ts Outdated
Comment thread src/message.ts Outdated
Comment thread src/queue.ts Outdated

@josecelano josecelano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @yeraydavidrodriguez I've added a couple of comments. And tests for the JobId class are missing.

Comment thread src/commit-subject-parser.ts Outdated
@josecelano josecelano linked an issue May 11, 2022 that may be closed by this pull request
@yeraydavidrodriguez yeraydavidrodriguez force-pushed the issue-38-auto-incremental-job-id branch from c2f48c3 to 8bd2da7 Compare May 13, 2022 11:05
@yeraydavidrodriguez yeraydavidrodriguez marked this pull request as ready for review May 13, 2022 11:07
Comment thread __tests__/unit/job-id.test.ts
@yeraydavidrodriguez yeraydavidrodriguez force-pushed the issue-38-auto-incremental-job-id branch from 8bd2da7 to 87c06b6 Compare May 16, 2022 15:03
@yeraydavidrodriguez yeraydavidrodriguez force-pushed the issue-38-auto-incremental-job-id branch from 87c06b6 to 2f22e0a Compare May 16, 2022 15:14
@yeraydavidrodriguez yeraydavidrodriguez merged commit 2f22e0a into main May 16, 2022
@yeraydavidrodriguez yeraydavidrodriguez deleted the issue-38-auto-incremental-job-id branch May 16, 2022 15:21
@da2ce7

da2ce7 commented May 17, 2022

Copy link
Copy Markdown
Contributor

@yeraydavidrodriguez Great Work :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an auto-incremental id to jobs

3 participants