You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When exporting signups or learning circles the server times out. To prevent this, the export should be handled by an async celery task with the result being passed back to the user. Passing back the result could happen by either
emailing the user
implement a view for polling the status of the task.
For getting the file to the user the plan is to use AWS S3 and generate a pre-signed URL.
TODO (taking option 2 above and returning the pre-signed URL to the interface)
Add django-celery-result for storing task results in the db
Add view to query the status of the task
Move export logic to task
Upload exported file to S3
Generate pre-signed URL
Update UX on dashboard to poll for result and display link when ready
Update dashboard view to check for recent export tasks (to make sure you can still get the export if you refresh your page or click away)
Make sure to use a scope IAM user for uploading data to a private bucket and expire uploaded files + links in a short time, 30 minutes?
Implement for all export tasks (signup export, learning circle export, user export, ??)
Ignore results from other tasks
Consider shorter presigned URL that is generated by dynamic view on the server
When exporting signups or learning circles the server times out. To prevent this, the export should be handled by an async celery task with the result being passed back to the user. Passing back the result could happen by either
For getting the file to the user the plan is to use AWS S3 and generate a pre-signed URL.
TODO (taking option 2 above and returning the pre-signed URL to the interface)
The text was updated successfully, but these errors were encountered: