Menu

#83 NewsVac: work around Schedule::Cron bug

closed-fixed
5
2002-06-20
2002-05-13
No

I ran into problems with the NewsVac run_spider.pl task
failing, until I made this patch.

--- plugins/NewsVac/tasks/run_spider.pl 1 May 2002 00:56:51 -0000 1.4
+++ plugins/NewsVac/tasks/run_spider.pl 13 May 2002 15:38:24 -0000
@@ -31,11 +31,11 @@

# We run spiders, periodically depending
# on this cron timespec.
-$task{$me}{timespec} = '*/15 * * * *'; # Every 15 mins.
-$task{$me}{timespec_panic_1} = ''; # Don't run at all in a
panic.
+$task{$me}{timespec} = '0-59/15 * * * *'; # Every 15 mins.
+$task{$me}{timespec_panic_1} = ''; # Don't run at all in a
panic.

-$task{$me}{'fork'} = 1; # If allowed, fork this task from
-
# slashd.
+$task{$me}{'fork'} = 1; # If allowed, fork this task
+
# from slashd.

$task{$me}{code} = sub {
my($virtual_user, $constants, $slashdb, $user) = @_;

Discussion

  • Larry Gilbert

    Larry Gilbert - 2002-05-13
    • assigned_to: nobody --> krow
     
  • Jamie McCarthy

    Jamie McCarthy - 2002-06-20
    • assigned_to: krow --> cbwood
    • status: open --> closed-fixed
     
  • Jamie McCarthy

    Jamie McCarthy - 2002-06-20

    Logged In: YES
    user_id=3889

    Done, thanks.

     

Log in to post a comment.