DragonByte Tech
Well-known member
I'm creating an upgrade to one of our add-ons that will add some new settings to the XenForo Options, and will need to port data from a database table into these new settings.
I'm seeing this todo line:
It's pretty imperative that the postUpgrade step only executes after import has completed. How likely is it to run into this race condition?
Fillip
I'm seeing this todo line:
// TODO: check whether the the import job is still enqueued. If so, it won't have completed successfully.
which would indicate that it cannot be guaranteed the import has completed successfully.It's pretty imperative that the postUpgrade step only executes after import has completed. How likely is it to run into this race condition?
Fillip