In general, a site should finish deploying within 5 minutes. Here are some reasons that one might fail to deploy properly or look like it’s “stuck”:
In order to servers and sites to be deployed properly, the WP CRON service needs to be working. In particular, the following THREE crons (cron-hooks) need to be running on the server where the WPCD plugin is installed:
When the plugin is first installed, these are probably running. But, over time, if other things are installed on your WordPress site, these processes might not start up or might have been killed. The easiest way to check that they are installed and running is to install the WP CRONTROL plugin from wordpress.org. Afterwards, go to the TOOLS->CRON EVENTS screen and in the search box on the upper right of that screen, enter “wpcd”. You should then see the following screen:
Notice that there are six items in the above image but the 3 crons listed earlier above are the most critical when deploying a site. If the three items are NOT shown, you should deactivate and reactivate the WPCD plugin.
If all six items in the image above are not shown in your installation then you also consider starting an investigation into a root cause.
The Power Tools add-on include an additional three crons as well:
These additional crons are not required when deploying a new site. But, if any are missing you should consider initiating a root-cause investigation (if disabling and re-enabling the plugins do not remedy the issue).
As of version 4.16, if we detect that any of these crons are not running you will receive an email. The email is sent once every 8 hours but can be turned off under WPCLOUDDEPLOY->SETTINGS->MISC in the CRON WARNING EMAILS section.
You might get an occasional email if a blip occurs (eg: during a plugin update or some other transient PHP error or maybe caused by a plugin conflict). But if you continue to receive them on a regular basis then you should definitely start to investigate why they are being disabled.
We recommend that a LINUX CRON be configured to force the WP-CRON to fire at least once per minute. Otherwise, WP-CRONS might not run often enough.
If we have installed the core WPCD server for you or if you use our pre-built images at DigitalOcean or AWS, LINUX CRONS are already set up to run once per minute.