2. code that listens to the task queue for new jobs
3. code that fetches a file from the FTP server
4. code that converts the JSON file to a format appropriate for the root finding
5. code that performs the root finding
6. code that converts the result of (3) to a format appropriate for insertion into a table
7. code that inserts the result into a Postgres table
Steps 4, 5 and 6 seem easy enough to implement in a pure fashion.