92 Commits

Author SHA1 Message Date
Dan
b2449c4d89 Trying to catch the too many messages error, and just stop rather than failing on all subsequent samples, so that it just keeps trying. 2020-11-16 10:01:56 -05:00
Dan
2396d2442f Open the time for sending messages to 1pm to 5:30om, if we send out every 15 minutes, that should allow 3000 messages to go out, while reducing the likelyhood that an alert will fire stopping delivery. 2020-11-13 14:28:39 -05:00
Dan
1328979bd3 Limit to 190 at a time, and then set interval to be 5 minutes and pray for the best. 2020-11-13 14:08:32 -05:00
Dan
bb114adf65 Seem to have created an error with text messages, trying to fix it. 2020-11-13 13:57:37 -05:00
Dan
dd7b40f5a9 trottle text messages as well. 2020-11-13 10:27:24 -05:00
Dan
a84a14f3e5 Update notifications to try to fix issues with email and texts getting caught. 2020-11-13 10:25:32 -05:00
Dan
107c36bf96 fixing some stupid bugs. 2020-11-11 12:03:37 -05:00
Dan
6008b4895d Fix form for communicator. 2020-11-11 10:47:34 -05:00
Dan
a8e897f344 Allow restricting results in main page, and downloading the results. 2020-11-03 16:01:50 -05:00
Dan
ee34a7ea20 cleaning up the scheduler, so it can check for new files every hour, but only send out notifications between 1 and 2:30. 2020-10-26 17:24:51 -04:00
Dan
034443451f limit texts to 150 each time as well. 2020-10-26 17:06:31 -04:00
Dan
09ad4d6de2 fix another stupid mistake in the scheduler. 2020-10-22 13:32:27 -04:00
Dan
079040263a stupid mistake. 2020-10-21 16:45:26 -04:00
Dan
5504c021bc setting up scheduler to allow sending notifications between 1 and pm. 2020-10-21 15:17:03 -04:00
Dan
43df690e1c only send a max of 150 emails, increase speed to 2 per second.
(appears that the smtp server starts rejecting requests after 200 emails, so
just playing it safe.
2020-10-20 15:11:46 -04:00
Dan
1e586df642 Merge branch 'master' of github.com:sartography/uva-covid19-testing-communicator 2020-10-20 14:43:13 -04:00
Dan
ff1ad5fc36 adding some logging messages so I can see if things are executing as expected. 2020-10-20 14:43:05 -04:00
Dan
8cf38cc4a8 Emails keep failing, I'm going to try upping the pause to every 2 seconds. 2020-10-19 12:57:09 -04:00
Aaron Louie
cee2cca160 Updates package versions 2020-10-19 12:27:27 -04:00
Dan
421c6eb791 set up a mechanism to retry sending messages that failed previously vai an api call. 2020-10-17 15:56:47 -04:00
Dan
dbff80ae27 update ivy files and remove noise from logs 2020-10-15 17:50:54 -04:00
Dan
a86ee07d60 I was overwriting the list of samples when two files were present, and I am stupid stupid stupid. 2020-10-15 17:35:58 -04:00
Dan
b1c9a7a4db adding some logging. 2020-10-15 17:22:28 -04:00
Dan
b813c4f272 adding some logging. 2020-10-15 17:21:20 -04:00
Dan
444c0cfebb Adding ability to turn off file deletion in configuration. 2020-10-15 16:16:46 -04:00
Dan
c239034c00 one last guess as to what could be happening with the files not getting updated properly. 2020-10-15 16:10:48 -04:00
Dan
53faef21f9 Missed a migration. 2020-10-15 15:44:21 -04:00
Dan
921201ec90 adding optional file name argument for text messages as well. 2020-10-15 15:31:28 -04:00
Dan
cf7607f2d3 Protect against loading files without actually injesting them by reserving the commit to execute on all records, then calling a delete.
Add flask executor so that long running tasks do not get killed when called from the API endpoints.

Allow passing a specific file when calling the notification endpoints so that we can send out notifications to only those individuals that are included in a specific import file from IVY.
2020-10-15 15:29:40 -04:00
Dan
5d9dbc12fe add additional endpoints so we can manually send out all notifications. 2020-10-13 16:13:41 -04:00
Dan
e63656d9f3 fix a stupid bug that verifies users have permission to see the api. 2020-10-12 16:35:14 -04:00
Dan
b89d2729fa Allow for the disabling of scheduled tasks in the configuration. Default to false. 2020-10-12 13:42:41 -04:00
Dan
cb4bec7190 Quit producting and error message in Sentry every 15 minutes 2020-10-07 13:05:46 -04:00
Dan
aa526b4c07 Adding code that will properly pull in the full bar code from IVY,
and a script that will fix previously incorrect pairings of data.
2020-10-07 12:58:44 -04:00
Dan
5dc0e72662 Enable sentry. 2020-10-06 12:49:27 -04:00
Dan
d66be8685a restrict access to a small set of netbadge users.
fixing saliva mis-spelling
Drop "Be Safe" use "Prevalance Testing"
2020-10-02 15:16:28 -04:00
Dan
2797083f73 updated email template 2020-10-01 15:59:46 -04:00
Dan
af488b5a2e check to see if there are files to transfer before making the request.
Cache the transfer client, so we aren't spinning one up too frequently.
2020-10-01 11:25:12 -04:00
Dan
ca37cba1d8 converting print lines to log messages 2020-09-30 16:18:57 -04:00
Dan
c3069c5ad8 be sure to commit logs of notifications as they go out. 2020-09-30 15:39:21 -04:00
Dan
f6cbac6473 be sure to request a transfer on a regular schedule. 2020-09-30 15:35:59 -04:00
Dan
108191e8a4 new email format and content for invitations. 2020-09-30 15:29:02 -04:00
Dan
668bc39cfd missed a critical configuration setting. 2020-09-30 14:00:44 -04:00
Dan
659264bfba Enable deleting of files once ingested. 2020-09-30 13:50:04 -04:00
Dan
4b2422d51e Enable deleting of files once ingested. 2020-09-30 12:34:15 -04:00
Dan
8c705d1bf4 Embed image in email rather than reference remove file. 2020-09-28 13:27:25 -04:00
Dan
2a5979d0e3 Because we send messages out as a scheduled task with no request attribute, we need a way to configure the base url so we can host images in emails. 2020-09-28 11:37:35 -04:00
Dan Funk
039da1b470 assuring the front page is properly paginating (it is)
Adding a complete delete endpoint for removing files from globus
Removing a bad header text in the email messages
2020-09-25 12:55:14 -04:00
Dan Funk
fa23b6ca30 clear out invitations as well 2020-09-25 11:56:08 -04:00
Dan Funk
7b4cbe4c24 throttle notifications so we don't run afoul of the email and text message servers. 2020-09-25 11:51:17 -04:00