Model-caching process stuck "Refreshing"

I have a model-caching process stuck in "Refreshing" state for more than 2 days now. It normally takes 4 minutes to refresh de model.
I tried to update the model to see if I could "force" the refresh. But the process keeps stuck.
I created a new model using exactly the same query definition and it works and it's refreshed. I have many reports using the one which is stuck so I would like to know how I could unblock the process to refresh it.

Hi @ilopezluna
Post "Diagnostic Info" from Admin > Troubleshooting.
And try checking the logs for more information - Admin > Troubleshooting > Logs.
And check the scheduled jobs, specifically metabase.task.PersistenceRefresh.job - Admin > Troubleshooting > Jobs.

Thanks for your answer. What I see is when a refresh job is launch Metabase is executing the exactly same query 3 times at the same time. Any ideas?

  "browser-info": {
    "language": "en-GB",
    "platform": "MacIntel",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36",
    "vendor": "Google Inc."
  "system-info": {
    "file.encoding": "UTF-8",
    "": "OpenJDK Runtime Environment",
    "java.runtime.version": "",
    "java.vendor": "Eclipse Adoptium",
    "java.vendor.url": "",
    "java.version": "",
    "": "OpenJDK 64-Bit Server VM",
    "java.vm.version": "",
    "": "Linux",
    "os.version": "5.4.209-116.367.amzn2.x86_64",
    "user.language": "en",
    "user.timezone": "GMT"
  "metabase-info": {
    "databases": [
    "hosting-env": "unknown",
    "application-database": "postgres",
    "application-database-details": {
      "database": {
        "name": "PostgreSQL",
        "version": "11.13"
      "jdbc-driver": {
        "name": "PostgreSQL JDBC Driver",
        "version": "42.5.0"
    "run-mode": "prod",
    "version": {
      "date": "2022-10-17",
      "tag": "v1.44.5",
      "branch": "release-x.44.x",
      "hash": "29fab4d"
    "settings": {
      "report-timezone": null

@ilopezluna Sounds like something has got stuck, but I'm not sure where you see those 3 queries?
Otherwise you can try disabling the persistent model setting and enable it again, which should renew all jobs.

Thanks for your quick answer. That's exactly what I did: I disabled the persistent model, and then I enabled it again, the refresh process of the model has restarted as expected BUT while the process is "Refreshing" I'm monitoring the DB and I can see the same exactly query running 3 times at the same time.

@ilopezluna Okay, without a way of reproducing, then it's difficult to say what is going on or how we can fix it.
I would advise using Views on your database for now.