-
Notifications
You must be signed in to change notification settings - Fork 104
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
fix(api): Synchronise schema publishing per target #764
Conversation
|
🚀 Website PreviewThe latest changes to the website are available as preview in: https://0fa1c308.hive-landing-page.pages.dev |
c3dea6c
to
e4f4e8d
Compare
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.
I wonder whether we should also add a test for publishing two targets in parallel.
Aside from that the logic makes sense to me!
if (advisoryLock) { | ||
lockConn.query(sql`select pg_advisory_unlock(${idInt})`).catch(err => { | ||
// TODO: what to do instead? | ||
console.error( |
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.
I think we can use logger.warn for now - if we notice it keeps happening a lot we can think more about it.
@n1ru4l right, that test would make sense. I'll see what I can do. 👌 |
@enisdenjo integration tests are failing :( |
@kamilkisiela fixed, the issue was mainly caused by nodejs/node#38924. |
Closes #728
Closes #756