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:
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 returns200
. Also, it should 'sleep' for the number of seconds returned by the 'Retry-After' header, since that's more proper :slightly_smiling_face: