Jump to content

Tool:Itwiki-orfanizzabot

From Wikitech
Toolforge tools
itwiki's orphanizer bot (OrfanizzaBot)
Website https://it.wikipedia.org/wiki/Utente:OrfanizzaBot
Description Tools in use by w:it:Utente:OrfanizzaBot
Keywords itwiki
Author(s) (Valerio_Bozzolantalk)
Maintainer(s) Valerio Bozzolan, Sakretsu, etc. (View all)
Source code https://gitlab.wikimedia.org/valeriobozzolan/mediawiki-orphanizer-bot
License GNU Affero General Public License 3.0 or later
Issues Open tasks · Report a bug
Admin log Nova Resource:Tools.orfanizzabot/SAL

Access the Tool (production)

Requirements:

To access the tool:

ssh login.toolforge.org
become itwiki-orfanizzabot

Homepage with some public bot logs

https://itwiki-orfanizzabot.toolforge.org/

Known Kubernetes jobs

To know all the registered Kubernetes jobs, run the command toolforge-jobs list. Example output:

$ toolforge-jobs list
+----------------------+------------------------+-------------------+
|      Job name:       |       Job type:        |      Status:      |
+----------------------+------------------------+-------------------+
| itwiki-orphanizerbot | scheduled: */3 * * * * | Running for 7m16s |
+----------------------+------------------------+-------------------+

More information about Kubernetes itself in Wikimedia Toolforge:

Help:Toolforge/Jobs framework

Jobs Backup

In case of nuclear disasters, the jobs can be restored from this Yaml dump obtained from toolforge jobs dump > dump.yaml and that can be restored with toolforge jobs load dump.yaml from this content:

$ toolforge jobs dump
- command: ./repository/orphanize.php --warmup=120 --delay=9 --cooldown=50 --no-interaction
  image: php8.4
  name: itwiki-orphanizerbot
  schedule: '*/3 * * * *'

Troubleshooting

If something does not work, try restarting something. Example:

toolforge-jobs restart itwiki-orphanizerbot

Server Admin Log

To add a line here, just type this command from Toolforge:

dologmsg <something>

All SAL lines:

Nova Resource:Tools.itwiki-orfanizzabot/SAL (new lines)

Nova Resource:Tools.itwiki/SAL (legacy lines)