[erlang-questions] crone.erl: tasks never executed
Rob Charlton
rob@REDACTED
Mon Sep 7 19:11:12 CEST 2009
info wrote:
> Really NOTHING: no "sleeping for ..." messages.
>
> Dnia 2009-09-07, pon o godzinie 18:20 +0200, info pisze:
>
>> I changed jobs in order to see their starting but ... nothing !
>>
Try going back to a copy of the source before you edited it. I just
pulled down and compiled crone.erl and crone_test.erl, uncommented the
io:fwrite in loop_task and got the following output:
3> crone_test:start().
{{daily,{every,{23,sec},{between,{3,pm},{3,30,pm}}}},
{io,fwrite,["Hello, world!~n"]}}: sleeping for 20:53:03
{{daily,{3,30,pm}},{io,fwrite,["It's three thirty~n"]}}: sleeping for
21:23:03
{{daily,[{1,10,am},{1,7,30,am}]},{io,fwrite,["Bing~n"]}}: sleeping for
7:00:33
[<0.50.0>,<0.49.0>,<0.48.0>,<0.47.0>,<0.46.0>,<0.45.0>,
<0.44.0>,<0.43.0>]
{{weekly,thu,{2,am}},{io,fwrite,["It's 2 Thursday morning~n"]}}:
sleeping for 79:53:03
{{weekly,wed,{2,am}},{io,fwrite,["It's 2 Wednesday morning~n"]}}:
sleeping for 55:53:03
{{weekly,fri,{2,am}},{io,fwrite,["It's 2 Friday morning~n"]}}: sleeping
for 103:53:03
{{monthly,1,{2,am}},{io,fwrite,["First of the month!~n"]}}: sleeping for
583:53:03
{{monthly,4,{2,am}},{io,fwrite,["Fourth of the month!~n"]}}: sleeping
for 655:53:03
--
Erlang Training and Consulting Ltd
www.erlang-consulting.com
More information about the erlang-questions
mailing list