• Resolved brianbeam

    (@brianbeam)


    When generating static pages, the plugin seems to terminate the job early but without any errors. Here’s the tail end of the log file:

    [2023-01-31 20:55:26] [class-ss-task.php:44] Status message: [fetch_urls] Fetched 4652 of 18403 pages/files
    [2023-01-31 20:55:26] [class-ss-archive-creation-job.php:145] We're not done with the fetch_urls task yet
    [2023-01-31 20:55:26] [class-ss-archive-creation-job.php:159] Completing the job
    [2023-01-31 20:55:26] [class-ss-archive-creation-job.php:270] Status message: [done] Done! Finished in 00:17:42

    As you can see, at about 25% of the way through, the log file simply reports Done and the process ends, without writing a .zip file.

    Suspecting a resource issue on the server, I monitored htop while the process ran and saw nothing abnormal… CPU usage and memory all seemed to be within normal limits.

    Thoughts?

Viewing 1 replies (of 1 total)
  • Plugin Author patrickposner

    (@patrickposner)

    Hey @brianbeam,

    thanks for reaching out!

    You need to activate the “Use WP-Cron” setting in Simply Static -> Settings -> Advanced to handle that many pages.

    We are currently relying on WP Background Processing as the processing engine (there are plans to change that), which isn’t always returning the correct response if the export is hitting the max execution time of the server.

    The fallback solution in Simply Static here is to “silently fail”.

    Using WP-Cron, Simply Static can run the entire export without any issues, as we can ping ourselves to avoid missing information in the current process.

    Best regards,

    Patrick

Viewing 1 replies (of 1 total)

The topic ‘Static Page Generation Terminates Early’ is closed to new replies.