matej_suchanek added a comment.

  The reason for the regression is T215247 
<https://phabricator.wikimedia.org/T215247>. Imagine you have the archive 
partitioned by the year (month, etc.) and the counter. Then, by the year's end, 
the counter could have increased up to 5. When the year ticks, the counter 
stays at 5, but you want to start from 1. We solve this by having the bot check 
for archive existence and decrement the counter in a loop until it finds an 
existing archive.
  
  A simple workaround is to update the counter AND create the new archive 
manually before the archive bot runs again.
  
  Maybe the above algorithm can be improved. For example, when the archive does 
not exist, we can have it check just the archive for `counter = 1`. If it 
doesn't exist, it is clear there was a "tick", and the bot can continue from 
there. If it does, do nothing with the counter and continue as usual.

TASK DETAIL
  https://phabricator.wikimedia.org/T331796

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: matej_suchanek
Cc: matej_suchanek, Xqt, Aklapper, MarcoAurelio, pywikibot-bugs-list, 
PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, MJL, 
Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, 
Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to