Skip to content

local_resource: expand on sleep comment#2886

Merged
landism merged 2 commits into
masterfrom
matt/update_local_resource_sleep_comment
Jan 31, 2020
Merged

local_resource: expand on sleep comment#2886
landism merged 2 commits into
masterfrom
matt/update_local_resource_sleep_comment

Conversation

@landism

@landism landism commented Jan 31, 2020

Copy link
Copy Markdown
Member

No description provided.

@landism
landism requested review from maiamcc and nicks January 31, 2020 15:52
// HACK(maia): on initial build, give the file change a little extra time to
// propagate through, to increase the chance that we pick it up before we start
// the next build (otherwise, we may build that next resource twice).
// HACK(maia) If target A generates file X and target B depends on file X, it was common that on Tilt startup,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

anecdotally, i've seen this Sleep call be insufficient when inotify is under load.

One possible way to fix with is to introduce some kind of an fsync() primitive (like we have elsewhere) where we make some change in a temp directory and wait for it to propagate thru all relevant listeners (in this case, the Store state loop)

@maiamcc maiamcc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@landism
landism merged commit 926adfa into master Jan 31, 2020
@landism
landism deleted the matt/update_local_resource_sleep_comment branch January 31, 2020 16:38
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.

3 participants