Intermittant 409 conflict errors. Please confirm my hypothesis

Hello,

We get intermittent 409 Conflict errors on a couple of our projects when deploying our Contentful model or migrations. In both cases, we create something programatically (either a content type or an entry) and then immediately publish it when the create call returns.

I found a comment in github under the Ruby SDK issue log saying that the create call is asynchronous and may not have fully completed by the time the publish call is called. Their solution was to check that the entry exists before publishing it. They try 10 times with a wait between tries to see if it’s been published.

Here’s the link to that thread: https://github.com/contentful/contentful-management.rb/issues/158

Can anyone confirm that this is true? I can’t find this behaviour documented anywhere. Since it’s intermittent it’s hard for me to debug.

Thanks,
Dustin