-
Notifications
You must be signed in to change notification settings - Fork 7
Refactor/flow 158 #315
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
base: master
Are you sure you want to change the base?
Refactor/flow 158 #315
Conversation
src/core/persist/knex/process.js
Outdated
| .skipLocked(); | ||
| } | ||
|
|
||
| async getLocked(id, processStateId, trx) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
|
Kudos, SonarCloud Quality Gate passed!
|








What type of PR is this?
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.: