heroku and django: heroku stop the function before it done

  django, docker, heroku, python

I deployed a "django" app on "heroku" and
I have a function (inside views) in my app that take some time (3m-5m) before it make a return.
the problem is:
– when I deployed my app on "heroku" the function didn’t make a return, I tested my app on my pc and it work fine.

"heroku" not telling me any thing in logs there is no ‘timeout’ or anything.

Source: Docker Questions