Problem/Motivation
When the sitemaps are generated and the max_execution_time is reached inside QueueWorkerDecorator::generate(). The current state is stashed in stashResults(). When the process continues the state is restored in unstashResults() but the sitemapProcessedNow is not restored correctly because it doesn't take the site variant into account correctly.
This leads to URLs ending up in the wrong sitemap.
Steps to reproduce
If you are not having URLs in the wrong sitemap you are likely just not running into the stashing mechanism. You can reduce the max_execution_time/generate_duration.
Issue fork sites_simple_sitemap-3539866
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
harlor commentedComment #4
hydra commentedHuge, this is impressive.
Comment #5
hydra commentedComment #6
hydra commentedThis should not happen anymore with the new generate approach from https://www.drupal.org/project/sites_simple_sitemap/issues/3550027