Issue/motivation

RequestTranslationSubscriber tries to create a url for job items (which contain only locale strings, not entities) but fails because TranslationJobToUrl::convert() can't load an entity by default entity type. That's why we have items in context_upload_queue which will fail on cron runs and will write error log messages into dblog.

Possible solution

Seems like RequestTranslationSubscriber should check for $url to be non-empty before attempting to create the item.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Loparev created an issue. See original summary.

Loparev’s picture

Loparev’s picture

Status: Active » Needs review
Loparev’s picture

Added alter hook. For now it's possible to disable/alter context creation for a content from a given job item.

Soul88’s picture

I don't see why would we need another hook to solve the issue from the initial post. Could you please elaborate more on that?

Loparev’s picture

@Soul88 it's just an opportunity to alter context url or disable context at all

Soul88’s picture

Status: Needs review » Reviewed & tested by the community

ok, looks good then. Thank you.

  • Loparev committed b7d850c on 8.x-1.x
    Issue #2897169 by Loparev, Soul88: Context upload queue items get...

  • Loparev committed b7d850c on 8.x-2.x
    Issue #2897169 by Loparev, Soul88: Context upload queue items get...
Loparev’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.