The list at /admin/content/imports doesn't always update when imports are saved. This gives the appearance of imports getting stuck.

They aren't stuck, as clearing the cache updates the view and shows the correct statuses.

I'm not sure why this happens yet. It doesn't happen every time. The view has the correct cache tags shown when the renderer is set with debug on. (IE both import_list and all the per-import tags.)

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rupertj created an issue. See original summary.

rupertj’s picture

Status: Active » Needs review

This is a bit of a workaround, but it does fix the issue.

andybroomfield’s picture

I'm not replicating the issue, even with all caching turned on.
Are there some specific steps to replicate?
Otherwise the change seems small enough we could just go with it.

rupertj’s picture

Interesting. I've seen it both on sites hosted on platform.sh and locally on ddev. Which cache backend are you using in the environment where it's working as expected?

andybroomfield’s picture

Database and memcache.
Just testing locally though.
Are the steps to replicate

  1. Add pdf to import
  2. Run drush lpii or crib
  3. Reload the import view.

I see the state change from pending to done.
Looking at the change though, I think it’s small enough to approve as I didn’t see any side effects after applying.

andybroomfield’s picture

Also using user 1. Maybe this effects other user roles?

rupertj’s picture

Status: Needs review » Fixed

Given "I think it’s small enough to approve as I didn’t see any side effects after applying." - I'm going to merge this, as it's immediately useful to me at least :) Thanks for the review!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

rupertj’s picture

Status: Fixed » Closed (fixed)