Skip to content

orphan_reference_processor should not get hobbled by invalid data #4631

@swirtSJW

Description

@swirtSJW

Current Behavior

Currently if you have a resource that is not valid, it will clog up the orphan reference processor and never be addressed... it remains indefinitely until you intervene in some way.

Expected Behavior

If there is an orphan, it should be removed whether its data is valid or not. No need to do a health check on the dead.

Steps To Reproduce

  1. needs invalid data (maybe because schema changed since it was referenced?)
  2. Replace the dataset with good data
  3. run the orphan reference processor queue repeatedly and see them never get processed.
  4. Long for the days when ORP stood for Old Rented Pony

Relevant log output (optional)

drush queue:list
 ---------------------------- ------- --------------------------------- 
  Queue                        Items   Class                            
 ---------------------------- ------- --------------------------------- 
  orphan_reference_processor   28      Drupal\Core\Queue\DatabaseQueue  

drush queue:run orphan_reference_processor
 [error]  JSON Schema validation failed.  (28 times)
 [error]  JSON Schema validation failed. 
 [error]  JSON Schema validation failed. 
 [error]  JSON Schema validation failed. 

drush queue:list
 ---------------------------- ------- --------------------------------- 
  Queue                        Items   Class                            
 ---------------------------- ------- --------------------------------- 
  orphan_reference_processor   28      Drupal\Core\Queue\DatabaseQueue

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions