backdrop-contrib / tugboat

Integrates with Tugboat.qa to allow creating on-the-fly preview sites.
GNU General Public License v2.0
0 stars 1 forks source link

Fix checking of job after cloning a site #1

Closed ghost closed 4 years ago

ghost commented 4 years ago

Currently, after cloning a site it checks the job to see if the 'Retry-After' header is set and, if so, keeps checking the job until it's not set.

Instead, it should check the response code from the job. A completed job returns 303 and a still-running job returns 200. Also, it should 'sleep' for the number of seconds returned by the 'Retry-After' header, since that's more proper :slightly_smiling_face: