FIX: ensure we don't queue any jobs during s3 migration

FIX: ensure we don’t queue any jobs during s3 migration

Previously we could flood sidekiq with jobs which is not ideal.

This ensures we are 100% done when the job is done.

diff --git a/lib/tasks/uploads.rake b/lib/tasks/uploads.rake
index 1012d13..cc0846b 100644
--- a/lib/tasks/uploads.rake
+++ b/lib/tasks/uploads.rake
@@ -213,6 +213,10 @@ def migrate_to_s3_all_sites
 end
 
 def migrate_to_s3
+
+  # we don't want have migrated state, ensure we run all jobs here
+  Jobs.run_immediately!
+
   db = RailsMultisite::ConnectionManagement.current_db
 
   dry_run = !!ENV["DRY_RUN"]

GitHub sha: 08371db0

FIX: don't blow up trying to replace spoiler with post url when post is nil