|
Atreides_096 Wanderer
Joined: 21 Jan 2005 Posts: 99 Location: Solvang, CA
|
Posted: Wed Nov 01, 2006 10:23 am
#alarm not firing |
Some time back I had a problem with an alarm trigger set to go hourly not firing. At the time, I deleted the trigger and re-created it, and it worked fine. The problem has just come up again, but this time re-creating the trigger did not work. It seems to fire randomly; some hours it fires, some hours it doesn't... the alarm is:
Code: |
#alarm *:00:00 {
#addkey TrackersEarned_DB ReportTypeOld %db( @TrackersEarned_DB, ReportType)
#if %time( hh)="04" {
#addkey TrackersEarned_DB ReportType Today
ReportS
ReportReset Daily
}
#if {%time( hh)="04" and %time( aaaa)="Monday"} {
#addkey TrackersEarned_DB ReportType Weekly
ReportS
ReportReset Weekly
}
#if {%time( hh)="04" and %time( d)="1"} {
#addkey TrackersEarned_DB ReportType Monthly
ReportS
ReportReset Monthly
}
#addkey TrackersEarned_DB ReportType %db( @TrackersEarned_DB, ReportTypeOld)
#delkey TrackersEarned_DB ReportTypeOld
#addkey TrackersEarned_DB SaveTime %ctime
#alarm HourlyCheck +5 {
#if %db( @TrackersEarned_DB, SaveTime)!=%ctime {
exphour
#alarm +3 {#if @ingquest=1 {#save}}
}
} |
Anyone have any idea what would cause it not to execute? |
|
|
|
darkspot Apprentice
Joined: 29 Jul 2002 Posts: 105
|
Posted: Thu Nov 02, 2006 3:36 am |
unless I'm wrong... set it to #alarm *1:00:00 instead of *:00:00
|
|
|
|
Atreides_096 Wanderer
Joined: 21 Jan 2005 Posts: 99 Location: Solvang, CA
|
Posted: Thu Nov 02, 2006 6:59 am |
*1:00:00 would just set it to only fire at 1a, 1pm, 11am and 11pm wouldn't it?
|
|
|
|
Taz GURU
Joined: 28 Sep 2000 Posts: 1395 Location: United Kingdom
|
Posted: Thu Nov 02, 2006 10:12 am |
It sounds like you might have a corrupted settings file, for now try *:59:59 instead.
|
|
_________________ Taz :) |
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: Fri Nov 03, 2006 2:09 pm |
Unless there was a mis-copy&paste, looks like there is a missing }
These are complete brackets:
Code: |
#if %time( hh)="04" {
#addkey TrackersEarned_DB ReportType Today
ReportS
ReportReset Daily
}
#if {%time( hh)="04" and %time( aaaa)="Monday"} {
#addkey TrackersEarned_DB ReportType Weekly
ReportS
ReportReset Weekly
}
#if {%time( hh)="04" and %time( d)="1"} {
#addkey TrackersEarned_DB ReportType Monthly
ReportS
ReportReset Monthly
}
#alarm HourlyCheck +5 {
#if %db( @TrackersEarned_DB, SaveTime)!=%ctime {
exphour
#alarm +3 {#if @ingquest=1 {#save}}
}
} |
but #alarm *:00:00 { has no closing bracket after the 2 singles ones at the end
Code: |
#alarm *:00:00 {
#addkey TrackersEarned_DB ReportTypeOld %db( @TrackersEarned_DB, ReportType)
#if %time( hh)="04" {
#addkey TrackersEarned_DB ReportType Today
ReportS
ReportReset Daily
}
#if {%time( hh)="04" and %time( aaaa)="Monday"} {
#addkey TrackersEarned_DB ReportType Weekly
ReportS
ReportReset Weekly
}
#if {%time( hh)="04" and %time( d)="1"} {
#addkey TrackersEarned_DB ReportType Monthly
ReportS
ReportReset Monthly
}
#addkey TrackersEarned_DB ReportType %db( @TrackersEarned_DB, ReportTypeOld)
#delkey TrackersEarned_DB ReportTypeOld
#addkey TrackersEarned_DB SaveTime %ctime
#alarm HourlyCheck +5 {
#if %db( @TrackersEarned_DB, SaveTime)!=%ctime {
exphour
#alarm +3 {#if @ingquest=1 {#save}}
}
}
} |
Only thinking that because a copy and paste of your code screwed up and made 2 triggers and one of them just had {#if in it |
|
|
|
|
|