First I have a module which I run using celery.

Second I have another module which I run to push a task to the celery worker. It imports the first module and calls it async. 

Now the first module loads some large files which only need to be loaded once. I wish to load then when celery starts, however when I run the 2nd module to push the task to the celery worked I do NOT wish to import these files again.

Can I call a function with celery so that it loads first time when the workers are initialised and then not call this function again when I run the 2nd module which just pushes the task to the worker?

Cheers