Celery worker - Tigris
Celery worker
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 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).
Thank you very much for the response.
Mr. Laverna Jacobson OP•1/21/26, 2:54 PM
Can we access files in a machine from another?
Hi… No, those are disjoint filesystems.
Tigris sounds promising for this kind of thing, although I haven’t tried it myself yet.
(Basically, Django would write to that shared object store, instead of creating a file locally.)
Hope this helps a little!
Aside: A worked example of Celery + Tigris might make a nice addition to Fly’s Python blog.
Prince Warren Heidenreich•1/21/26, 2:54 PM
Thank you very much for the response.