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
Dan Funk
2fe87b1cf9
tell alembic not to futz with the apscheduler table.
2020-09-25 11:45:48 -04:00
Dan Funk
10040b82d7
Better error handling for emails and text messages.
2020-09-25 11:33:20 -04:00
Dan Funk
fe565afda3
All the pieces in place. Going to see if it works.
...
Text messages should only go out at reasonable hours.
Adding the same sample a second time through the API should not create an error.
2020-09-24 16:51:49 -04:00
Dan Funk
b786aba6d8
Fix date formats to the correct timezone
2020-09-24 14:39:09 -04:00
Dan Funk
59436a1c5a
fixing a stupid.
2020-09-24 13:43:21 -04:00
Dan Funk
360d20560b
provide some deatils on the current user. Assure we can get them consistently.
2020-09-24 13:36:46 -04:00
Dan Funk
c17a18ab4a
clean up scheduler, and prepare for automating everything....
2020-09-24 12:25:18 -04:00
Dan Funk
0057a8e303
Test the scheduler, and see if it works.
2020-09-24 11:51:50 -04:00
Dan Funk
74cc1aa4aa
Merge pull request #1 from ianterrell/feature-scheduler
...
Add APScheduler for periodically updating data
2020-09-24 11:37:44 -04:00