Automattic / babble

Multilingual WordPress done right.
https://wordpress.org/plugins/babble/
245 stars 50 forks source link

Translation Job metadata race condition #316

Closed simonwheatley closed 9 years ago

simonwheatley commented 9 years ago
  1. Create a post
  2. Check "create translation jobs"
  3. Hit save

We then encounter a race condition whereby the Translation Job creation is on post_save with a priority of 10, and the meta data save from the metabox is on post_save with a priority of 10. It's essentially arbitrary which will run first, and if the job is created first then the metadata is not in place to be saved to the Translation Job.

This is fixed in my local copy by moving the translation job creation a lot later in priority.