I have a Django app running on one machine and a Celery worker on another. The Django app uploads files to a folder, and I need to access these files from the Celery task.
How can I do this? Can files on one machine be accessed from another?
Solution
I found a workaround for this: I upload the file and save its contents in a
BinaryField
BinaryField
in the database. Then I call the Celery task that reads this record, gets the field contents, processes it, and then deletes the record (as I only need the content and not the file itself).