Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate pdf parsing to async task #9

Open
dcramer opened this issue Sep 11, 2024 · 0 comments
Open

Migrate pdf parsing to async task #9

dcramer opened this issue Sep 11, 2024 · 0 comments

Comments

@dcramer
Copy link
Owner

dcramer commented Sep 11, 2024

We'll assume this will almost always (always?) be an external service. We should switch to a model where we fire off the task, wire up a receiver webhook (or a cron if it were to be needed), and not block server timeouts.

Right now I've increased timeouts to 5m, which has fixed some issues in prod for adding/processing files, but many scenarios took upwards of 10mins.

This likely just requires a few small schema tweaks to mark the state of a resource, and then appropriate webhooks.

The datalab service we're using already supports a webhook, so that just needs implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant