Skip to content

Do not mix chef calls and proposal saves - #255

Open
dirkmueller wants to merge 2 commits into
crowbar:masterfrom
dirkmueller:proposal_untangle
Open

Do not mix chef calls and proposal saves#255
dirkmueller wants to merge 2 commits into
crowbar:masterfrom
dirkmueller:proposal_untangle

Conversation

@dirkmueller

Copy link
Copy Markdown
Contributor

Using chef calls while the propsal is still being modified
can cause delays that would cause the transaction to be delayed
so long that other workers get a busy exception. Shorten the lifetime
of the critical section.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

unexpected token tIDENTIFIER
(Using Ruby 2.3 parser; configure using TargetRubyVersion parameter, under AllCops)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Style/SpaceAfterComma: Space missing after comma. (https://github.com/bbatsov/ruby-style-guide#spaces-operators)

@vuntz

vuntz commented Jan 29, 2016

Copy link
Copy Markdown
Member

I don't understand.

Does doing something like Proposal.where(barclamp: "crowbar", name: inst).first lock the database?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Metrics/LineLength: Line is too long. 105/100

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

Development

Successfully merging this pull request may close these issues.

6 participants