Daily loop not starting election #22

Closed
opened 2023-09-08 11:36:54 -04:00 by imcompiling · 5 comments
Owner

Bug. The daily loop isn't starting out the election properly.

Fixed a bug on main before it became a more serious bug. Now the bot is creating two channels and getting stopped by unique requirement in the database.

Bug. The daily loop isn't starting out the election properly. Fixed a bug on main before it became a more serious bug. Now the bot is creating two channels and getting stopped by unique requirement in the database.
imcompiling added this to the Clan election cycle development project 2023-09-08 11:36:54 -04:00
imcompiling added the bug label 2023-09-08 11:41:05 -04:00
imcompiling added reference 22-daily-loop-not-starting-election 2023-09-08 11:42:56 -04:00
Author
Owner

Works during debug but doesn't work in the docker container on test server.

Works during debug but doesn't work in the docker container on test server.
Author
Owner

Turns out I didn't put the bot messages in the docker image. When it ran into the file not found exception, the loop tried again resulting in the constraint violation. Somehow the file not found exception was buried and I did not find it until I stepped through the program in the docker container.

Turns out I didn't put the bot messages in the docker image. When it ran into the file not found exception, the loop tried again resulting in the constraint violation. Somehow the file not found exception was buried and I did not find it until I stepped through the program in the docker container.
Author
Owner

Still need to make sure that everything is working fine across an election time period.

Still need to make sure that everything is working fine across an election time period.
Author
Owner

Found some more bugs within the loop function. Rewrote things a little, standardized the names of values being replaced within the text, and added all dates to configs to make things easier. Testing again. Also did a dry run by changing the dates manually and everything worked.

Found some more bugs within the loop function. Rewrote things a little, standardized the names of values being replaced within the text, and added all dates to configs to make things easier. Testing again. Also did a dry run by changing the dates manually and everything worked.
Author
Owner

I think it is working correctly. It properly has run two days in a row.

I think it is working correctly. It properly has run two days in a row.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: imcompiling/dakiny-bot#22