fix: Revert breaking changes
This commit is contained in:
parent
82a9f96770
commit
01c3931525
1 changed files with 14 additions and 20 deletions
|
@ -1,10 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
ca=100
|
ca=100
|
||||||
camax=0
|
camax=0
|
||||||
while [[ ${ca} -gt 0 ]]
|
while [[ ${ca} -gt 0 ]]; do
|
||||||
do
|
ca=$(sudo mariadb friendica -B -N -q -e "delete from workerqueue where regexp_replace(regexp_replace(\`parameter\`, '\\\[', ''), '\\\]', '') not in (select \`id\` from \`contact\` where \`id\` in (select \`contact-id\` from \`group_member\`) or \`id\` in (select \`cid\` from \`user-contact\`) or \`id\` in (select \`uid\` from \`user\`)) and \`command\` = \"UpdateContact\" limit ${ca}; select row_count();")
|
||||||
ca=$(sudo mariadb friendica -B -N -q -e "delete from workerqueue where regexp_replace(regexp_replace(\`parameter\`, '\\\[', ''), '\\\]', '') not in (select \`id\` from \`contact\` where \`id\` in (select \`contact-id\` from \`group_member\`)) and \`command\` = \"UpdateContact\" limit ${ca}; select row_count();")
|
camax=$((camax + ca))
|
||||||
camax=$(( camax + ca ))
|
|
||||||
printf "\rUpdateContact\t\t%s\r" "${camax}"
|
printf "\rUpdateContact\t\t%s\r" "${camax}"
|
||||||
done
|
done
|
||||||
printf "\rUpdateContact\t\t%s\n\r" "${camax}"
|
printf "\rUpdateContact\t\t%s\n\r" "${camax}"
|
||||||
|
@ -12,10 +11,9 @@ printf "\rUpdateContact\t\t%s\n\r" "${camax}"
|
||||||
|
|
||||||
cb=100
|
cb=100
|
||||||
cbmax=0
|
cbmax=0
|
||||||
while [[ ${cb} -gt 0 ]]
|
while [[ ${cb} -gt 0 ]]; do
|
||||||
do
|
cb=$(sudo mariadb friendica -B -N -q -e "delete from workerqueue where regexp_replace(regexp_replace(\`parameter\`, '\\\[', ''), '\\\]', '') not in (select \`id\` from \`contact\` where \`id\` in (select \`contact-id\` from \`group_member\`) or \`id\` in (select \`cid\` from \`user-contact\`) or \`id\` in (select \`uid\` from \`user\`)) and \`command\` = \"ContactDiscovery\" limit ${cb}; select row_count();")
|
||||||
cb=$(sudo mariadb friendica -B -N -q -e "delete from workerqueue where regexp_replace(regexp_replace(\`parameter\`, '\\\[', ''), '\\\]', '') not in (select \`id\` from \`contact\` where \`id\` in (select \`contact-id\` from \`group_member\`)) and \`command\` = \"ContactDiscovery\" limit ${cb}; select row_count();")
|
cbmax=$((cbmax + cb))
|
||||||
cbmax=$(( cbmax + cb ))
|
|
||||||
printf "\rContactDiscovery\t%s\r" "${cbmax}"
|
printf "\rContactDiscovery\t%s\r" "${cbmax}"
|
||||||
done
|
done
|
||||||
printf "\rContactDiscovery\t%s\n\r" "${cbmax}"
|
printf "\rContactDiscovery\t%s\n\r" "${cbmax}"
|
||||||
|
@ -23,10 +21,9 @@ printf "\rContactDiscovery\t%s\n\r" "${cbmax}"
|
||||||
|
|
||||||
cc=100
|
cc=100
|
||||||
ccmax=0
|
ccmax=0
|
||||||
while [[ ${cc} -gt 0 ]]
|
while [[ ${cc} -gt 0 ]]; do
|
||||||
do
|
cc=$(sudo mariadb friendica -B -N -q -e "delete from workerqueue where regexp_replace(substring_index(substring_index(\`parameter\`, '\\\"', -2), '\\\"', 1), '\\\\\\\\', '') not in (select \`url\` from \`contact\` where \`id\` in (select \`contact-id\` from \`group_member\`) or \`id\` in (select \`cid\` from \`user-contact\`) or \`id\` in (select \`uid\` from \`user\`)) and \`command\` = \"FetchFeaturedPosts\" limit ${cc}; select row_count();")
|
||||||
cc=$(sudo mariadb friendica -B -N -q -e "delete from workerqueue where regexp_replace(substring_index(substring_index(\`parameter\`, '\\\"', -2), '\\\"', 1), '\\\\\\\\', '') not in (select \`url\` from \`contact\` where \`id\` in (select \`contact-id\` from \`group_member\`)) and \`command\` = \"FetchFeaturedPosts\" limit ${cc}; select row_count();")
|
ccmax=$((ccmax + cc))
|
||||||
ccmax=$(( ccmax + cc ))
|
|
||||||
printf "\rFetchFeaturedPosts\t%s\r" "${ccmax}"
|
printf "\rFetchFeaturedPosts\t%s\r" "${ccmax}"
|
||||||
|
|
||||||
done
|
done
|
||||||
|
@ -35,10 +32,9 @@ printf "\rFetchFeaturedPosts\t%s\n\r" "${ccmax}"
|
||||||
|
|
||||||
cd=100
|
cd=100
|
||||||
cdmax=0
|
cdmax=0
|
||||||
while [[ ${cd} -gt 0 ]]
|
while [[ ${cd} -gt 0 ]]; do
|
||||||
do
|
cd=$(sudo mariadb friendica -B -N -q -e "delete from workerqueue where regexp_replace(substring_index(substring_index(\`parameter\`, '\\\"', -2), '\\\"', 1), '\\\\\\\\', '') not in (select \`url\` from \`contact\` where \`id\` in (select \`contact-id\` from \`group_member\`) or \`id\` in (select \`cid\` from \`user-contact\`) or \`id\` in (select \`uid\` from \`user\`)) and \`command\` = \"UpdateGServer\" limit ${cd}; select row_count();")
|
||||||
cd=$(sudo mariadb friendica -B -N -q -e "delete from workerqueue where regexp_replace(substring_index(substring_index(\`parameter\`, '\\\"', -2), '\\\"', 1), '\\\\\\\\', '') not in (select \`url\` from \`contact\` where \`id\` in (select \`contact-id\` from \`group_member\`)) and \`command\` = \"UpdateGServer\" limit ${cd}; select row_count();")
|
cdmax=$((cdmax + cd))
|
||||||
cdmax=$(( cdmax + cd ))
|
|
||||||
printf "\rUpdateGServer\t\t%s\r" "${cdmax}"
|
printf "\rUpdateGServer\t\t%s\r" "${cdmax}"
|
||||||
done
|
done
|
||||||
printf "\rUpdateGServer\t\t%s\n\r" "${cdmax}"
|
printf "\rUpdateGServer\t\t%s\n\r" "${cdmax}"
|
||||||
|
@ -46,12 +42,10 @@ printf "\rUpdateGServer\t\t%s\n\r" "${cdmax}"
|
||||||
|
|
||||||
ce=100
|
ce=100
|
||||||
cemax=0
|
cemax=0
|
||||||
while [[ ${ce} -gt 0 ]]
|
while [[ ${ce} -gt 0 ]]; do
|
||||||
do
|
|
||||||
ce=$(sudo mariadb friendica -B -N -q -e "delete from workerqueue where command=\"ProcessQueue\" and pid=0 and done=0 limit ${ce}; select row_count();")
|
ce=$(sudo mariadb friendica -B -N -q -e "delete from workerqueue where command=\"ProcessQueue\" and pid=0 and done=0 limit ${ce}; select row_count();")
|
||||||
cemax=$(( cemax + ce ))
|
cemax=$((cemax + ce))
|
||||||
printf "\rProcessQueue\t\t%s\r" "${cemax}"
|
printf "\rProcessQueue\t\t%s\r" "${cemax}"
|
||||||
done
|
done
|
||||||
printf "\rProcessQueue\t\t%s\n\r" "${cemax}"
|
printf "\rProcessQueue\t\t%s\n\r" "${cemax}"
|
||||||
#echo "ProcessQueue $cemax"
|
#echo "ProcessQueue $cemax"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue