Skip to content

Conversation

@pedropereiraassis
Copy link
Contributor

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:
/kind refactor

What this PR does / why we need it:
Move process methods into persist layers.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Additional documentation e.g., usage docs, etc.:

.skipLocked();
}

async getLocked(id, processStateId, trx) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Fiquei na dúvida... o que estamos fazendo aqui?
Estamos fazendo o lock do processo, mas essas 2 chaves são estranhas... só se o objetivo é verificar se o processo está no state esperado.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Isso, o objetico desse é fazer o lock e verificar se está no state esperado. Esse método especificamente só é usado pelo método __inerLoop, aí aproveitei pra mover também pra camada de persistência

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants