How to start another manual deferred process from within the current deferred process.

Mr. Goodie2Shoes

Well-known member
I am rebuilding the permalinks via deferred process and once that is done, I need to rebuild the blocks. I added something like:
PHP:
XenForo_Application::defer(
    'Atomic', array('simple' => 'GFNPermalink_Deferred_BlockRebuild'), 'permalinkBlock', true
);

which gets called once the permalink rebuild finishes it's job but it's not getting called for some reason and after some time the notice for continuing the manual deferred process on the admin home.

Any help is highly appreciated :)
 
You can't really do what you're doing directly. I would also note that using the Atomic helper isn't really useful when you're only running one process. The purpose is to run 2 or more processes atomically (ensure the first completes before the second starts). So it sounds to me like you want to trigger both processes together at the start using Atomic. (Or you need to write an specific version of Atomic to trigger the second process internally.)
 
Back
Top Bottom