{"action":"created","issue":{"url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1708","labels_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1708/labels{/name}","comments_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1708/comments","events_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1708/events","html_url":"https://github.com/wp-cli/wp-cli/issues/1708","id":60714738,"number":1708,"title":"if an import halts due to max_execuation_time, what happens if I re-run it?","user":{"login":"VickG","id":3667059,"avatar_url":"https://avatars.githubusercontent.com/u/3667059?v=3","gravatar_id":"","url":"https://api.github.com/users/VickG","html_url":"https://github.com/VickG","followers_url":"https://api.github.com/users/VickG/followers","following_url":"https://api.github.com/users/VickG/following{/other_user}","gists_url":"https://api.github.com/users/VickG/gists{/gist_id}","starred_url":"https://api.github.com/users/VickG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VickG/subscriptions","organizations_url":"https://api.github.com/users/VickG/orgs","repos_url":"https://api.github.com/users/VickG/repos","events_url":"https://api.github.com/users/VickG/events{/privacy}","received_events_url":"https://api.github.com/users/VickG/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-11T19:23:18Z","updated_at":"2015-03-11T19:57:12Z","closed_at":"2015-03-11T19:57:12Z","body":"This might be a stupid question... but I ran an import and had 9k posts imported by the time it hit the server max_execution_time which made the import halt.\r\n\r\nI have since then increased the max_execuation_time.\r\n\r\nMy question:\r\nShould I erase my 9k posts that were imported until it halted, or is it safe to re-run the import without deleting everything that got imported until it halted?\r\n\r\nthanks\r\n"},"comment":{"url":"https://api.github.com/repos/wp-cli/wp-cli/issues/comments/78357958","html_url":"https://github.com/wp-cli/wp-cli/issues/1708#issuecomment-78357958","issue_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1708","id":78357958,"user":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars.githubusercontent.com/u/36432?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbachhuber","html_url":"https://github.com/danielbachhuber","followers_url":"https://api.github.com/users/danielbachhuber/followers","following_url":"https://api.github.com/users/danielbachhuber/following{/other_user}","gists_url":"https://api.github.com/users/danielbachhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbachhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbachhuber/subscriptions","organizations_url":"https://api.github.com/users/danielbachhuber/orgs","repos_url":"https://api.github.com/users/danielbachhuber/repos","events_url":"https://api.github.com/users/danielbachhuber/events{/privacy}","received_events_url":"https://api.github.com/users/danielbachhuber/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T19:57:12Z","updated_at":"2015-03-11T19:57:12Z","body":"> is it safe to re-run the import without deleting everything that got imported until it halted?\r\n\r\nIt's safe-ish. The WordPress Importer has a mechanism to prevent duplicate content from being created. However, because your script halted mid-execution, there's probably one item that's broken to some degree. Also, there are cleanup tasks that run at the end of the import that didn't run, so at least some of your content didn't get cleaned up.\r\n\r\nIf it's possible, you should empty the site and start over. `wp site empty` will delete all posts, comments, and terms without affecting your options or users. If you use it though, you'll need to manually delete the uploads directory."}}