smaller batch fix
This commit is contained in:
parent
ed19736e22
commit
7f448fb31f
|
@ -100,7 +100,7 @@ async def block_skylinks_from_airtable():
|
||||||
batch_size = 500
|
batch_size = 500
|
||||||
for i in range(0, len(skylinks), batch_size):
|
for i in range(0, len(skylinks), batch_size):
|
||||||
cached_files_command = (
|
cached_files_command = (
|
||||||
"find /data/nginx/cache/ -type f | xargs --no-run-if-empty -n" + batch_size + " grep -Els '^Skynet-Skylink: ("
|
"find /data/nginx/cache/ -type f | xargs --no-run-if-empty -n" + str(batch_size) + " grep -Els '^Skynet-Skylink: ("
|
||||||
+ "|".join(skylinks[i:i+batch_size])
|
+ "|".join(skylinks[i:i+batch_size])
|
||||||
+ ")'"
|
+ ")'"
|
||||||
)
|
)
|
||||||
|
|
Reference in New Issue