Scheduler cannot find module

I am developing an app. and in the hooks.py i have this:

scheduler_events = {
“all”: [
“multi_tenant_login.utils.sync_tenant_mappings”
]
}

this actually works in the sense that i can find this scheduled event in the UI. i can execute it however, when i go into the scheduler container and i use the command: bench schedule, it says it cannot find the module which is my app.

i have migrated, i have done all described in the official documentation to create a new app. please help

i have found the solution, its again baking the custom app into the image so that all containers have access to it. else it wont work