Page MenuHomePhabricator

PAWS terminal (or Pywikibot) cannot seemingly run for an extended period in unattended mode
Closed, DuplicatePublic

Description

Whats the problem?:

I recently had a requirement to purge a number of pages using a specfic module and template at Wikitionary.
The releavant template/module being :-
https://en.wiktionary.org/wiki/Template:th-pron

The reason for the mass purges
https://en.wiktionary.org/w/index.php?title=Special:LintErrors/missing-end-tag&namespace=0

which had a considerably number of entries which would be problematic to purge or null edit indvidually by hand.

I was advised that this could be done using PAWS

The paws command line used was

pwb.py touch -lang:en -family:wiktionary -transcludes:"th-pron" -purge

which ran, but eventually timed out, long before the desired task had been completed.

Expected result:
Task would run to completion, provided the relevant PAWS terminal window remained open.

Actual Result:
Task ran until seemingly 'timed-out' after which no output appeared in the respective terminal window, without an indication that the task had actually completed.

Suggested solution:
Provide an option in PAWS, or PyWikibot for an 'unattended' mode, where once the desired command is submitted, the relevant terminal window from which the command has been entered does not need to remain open indefinitely (or can be closed by the user iniating the command concerned) , with an appropriate e-mail notification being generated when the relevant task requested has been completed.

Event Timeline

QEDK renamed this task from PAWS terminal (or PYwikiBot) cannot seemingly run for an extened period in un-attended mode. to PAWS terminal (or Pywikibot) cannot seemingly run for an extended period in unattended mode.Jan 20 2021, 5:27 PM

Is there any reason you are not ssh-ing into a tools account or using your local environment to do this? I don't mean to say that this isn't a problem for you, but that you have current workarounds for it, that's all.

I don't know about PAWS, but Pywikibot shouldn't be killing a script before completion unless there was an error.

Pywikibot has the daemonize global option.

I don't know about PAWS, but Pywikibot shouldn't be killing a script before completion unless there was an error.

Pywikibot has the daemonize global option.

I don't think it's PWB, it's PAWS - it's not really designed for long, blocking scripts. Quoting from the guide - All notebooks and terminals in PAWS are subject to termination without notice. You are encouraged to run your task on other places (such as Toolforge) if your task lasts for more than hours.

ShakespeareFan00 triaged this task as Medium priority.

Closing as invalid, Wrong tool for an extended length task.