Forum
EasyIoT server
Bug reports
EasyIoT Server Win v0.9 - Cron Bug
EasyIoT Server Win v0.9 - Cron Bug
Less
More
Posts: 7
Thank you received: 0
9 years 5 days ago #2533
by timpur
Ive noticed that my Cron is not working in my automation programs. None of the "Run()" Functions execute. Testing "* * * * *" (Every Min) and nothing happens.
Wondering if anyone else has his problem?
Please Log in or Create an account to join the conversation.
Less
More
Posts: 7
Thank you received: 0
9 years 4 days ago #2535
by timpur
V0.8 Works fine but not V0.9
Is this just me or anyone else having this problem?
Please Log in or Create an account to join the conversation.
Less
More
Posts: 7
Thank you received: 0
9 years 4 days ago #2536
by timpur
So ive done some debugging and found the problem in the windows IOT server exe code
Within AutomationEngine - CheckScheduledEvents() there is a error.
Looks to me from 0.8 to 0.9 there was a restructure of this function which moved this logic :
if (programContainer.Enabled && programContainer.CodeOk && (!string.IsNullOrEmpty(programContainer.CronExpression) && programContainer.LastOccurrence != strB))
{
.......
}
in 0.9 the move of this code causes a logic error since programContainer.LastOccurrence has already been set to strB in the above code thus programContainer.LastOccurrence will always == strB and can never not be != to strB
Not sure what EasyIoT wants to do to fix this but the error is there and it means that the automation programs wont run when meant to.
Not sure if this is just a windows version error ?
Please Log in or Create an account to join the conversation.
Less
More
Posts: 862
Karma: 25
Thank you received: 264
9 years 4 days ago #2541
by EasyIoT
I've tested with latest win version on WIN7 and it works. Maybe you need to recompile program - go in program editor and click update button.
Please Log in or Create an account to join the conversation.
Less
More
Posts: 7
Thank you received: 0
9 years 4 days ago - 9 years 4 days ago #2542
by timpur
Should of mentioned that im using the code from the windows zip from the download page ?
Im suing the EasyIoT server from the download page, windows .zip
for me that doesnt work....
Last edit: 9 years 4 days ago by
timpur .
Please Log in or Create an account to join the conversation.
Less
More
Posts: 7
Thank you received: 0
9 years 4 days ago #2543
by timpur
Ive done that many many times and it executed once and only once.
so after recompiling the automation program or disable/enable
the setup() runs fine and the Run() only runs once ....
Please Log in or Create an account to join the conversation.
Forum
EasyIoT server
Bug reports
EasyIoT Server Win v0.9 - Cron Bug
Time to create page: 0.213 seconds