User:AnomieBOT/source/tasks/POTDPageDeleter.pm: Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: POTDPageDeleter: * Add log message for link removal.
AnomieBOT (talk | contribs)
Updating published sources: POTDPageDeleter: * Yield to other tasks, as is standard.
Line 63:
 
$screwup='If this bot is malfunctioning, please report it at [[User:'.$api->user.'/shutoff/POTDPageDeleter]]';
 
my $endtime = time() + 300;
 
my @when = gmtime;
Line 77 ⟶ 79:
while(my $p=$iter->next){
return 0 if $api->halting;
return 0 if time() >= $endtime; # Give other tasks a chance to run
 
if(!$p->{'_ok_'}){
$api->warn("Failed to retrieve POTD pages for deletion: ".$p->{'error'}."\n");
Line 135 ⟶ 139:
while(my $p=$iter->next){
return 0 if $api->halting;
return 0 if time() >= $endtime; # Give other tasks a chance to run
 
if(!$p->{'_ok_'}){
$api->warn("Failed to retrieve POTD pages for deletion: ".$p->{'error'}."\n");
Line 172 ⟶ 178:
while(my $p=$iter->next){
return 0 if $api->halting;
return 0 if time() >= $endtime; # Give other tasks a chance to run
 
if(!$p->{'_ok_'}){
$api->warn("Failed to retrieve POTD talk pages for deletion: ".$p->{'error'}."\n");