@@ -787,14 +787,13 @@ def run_build(self, record):
787
787
# We upload EXTERNAL version media files to blob storage
788
788
# We should have this check here to make sure
789
789
# the files don't get re-uploaded on web.
790
- if self .version .type != EXTERNAL :
791
- self .update_app_instances (
792
- html = bool (outcomes ['html' ]),
793
- search = bool (outcomes ['search' ]),
794
- localmedia = bool (outcomes ['localmedia' ]),
795
- pdf = bool (outcomes ['pdf' ]),
796
- epub = bool (outcomes ['epub' ]),
797
- )
790
+ self .update_app_instances (
791
+ html = bool (outcomes ['html' ]),
792
+ search = bool (outcomes ['search' ]),
793
+ localmedia = bool (outcomes ['localmedia' ]),
794
+ pdf = bool (outcomes ['pdf' ]),
795
+ epub = bool (outcomes ['epub' ]),
796
+ )
798
797
else :
799
798
log .warning ('No build ID, not syncing files' )
800
799
@@ -1114,9 +1113,6 @@ def update_app_instances(
1114
1113
'Updating version failed, skipping file sync: version=%s' ,
1115
1114
self .version ,
1116
1115
)
1117
- hostname = socket .gethostname ()
1118
-
1119
- delete_unsynced_media = True
1120
1116
1121
1117
# Broadcast finalization steps to web application instances
1122
1118
fileify .delay (
@@ -1272,7 +1268,7 @@ def fileify(version_pk, commit, build):
1272
1268
This is so we have an idea of what files we have in the database.
1273
1269
"""
1274
1270
version = Version .objects .get_object_or_log (pk = version_pk )
1275
- if not version :
1271
+ if not version or version . type == EXTERNAL :
1276
1272
return
1277
1273
project = version .project
1278
1274
0 commit comments