StateVoicesNational / Spoke

mass-contact text/SMS distribution tool
Other
463 stars 402 forks source link

Bug: Possible resending text messages bug #1811

Open allibail opened 4 years ago

allibail commented 4 years ago

Describe the bug We noticed in src>workers>job-processes.js that there could be an erroneous conditional in the dispatchProcesses function on line 285. The variable toDispatch is set to either syncProcessMap or processMap based on the truthiness of JOBS_SAME_PROCESS, and then in the for loop on line 288, p is only checked against processMap. Does this mean not every function in syncProcessMap is run? We are running a multi org deployment on lambda and want to make sure that scheduled jobs are being handled correctly.

schuyler1d commented 4 years ago

I believe this is fixed with this PR: https://github.com/MoveOnOrg/Spoke/pull/1796 coming in 9.1

Frydafly commented 3 years ago

Checking in whether this can be closed, given 9.1 @schuyler1d ?

schuyler1d commented 3 years ago

There IS still an issue with a bunch of dispatch processes including/especially resending. I think there are unfortunately some issues on multiple layers: