Download the PHP package discoverygarden/dgi_standard_derivative_examiner without Composer
On this page you can find all versions of the php package discoverygarden/dgi_standard_derivative_examiner. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package dgi_standard_derivative_examiner
DGI Standard Derivative Examiner
Introduction
Provides tools for identifying missing derivatives given DGI's standard content model.
Requirements
This module requires the following modules/libraries:
Installation
Install as usual, see this for further information.
Usage
The dgi-standard-derivative-examiner:derive command accepts a CSV-like structure with the first column representing the node IDs to process.
Patterns of execution might look like:
Or, without spooling to a separate file, using GNU Parallel with two processes each processing 100 items at a time:
There's a balance here somewhere between:
- The number of workers
- Likely related in some respect to the number of cores available for Drupal and the SQL server in general
- The number of items per worker
- bootstrapping each worker takes time, but Drupal has a habit of hanging on to loaded entities longer than expected, and we do not want the process to fail due to memory exhaustion. Might be safe-ish up to 1000, in most environments?
The dgi-standard-derivative-examiner:derive command defaults to outputting CSV containing:
nid: the node IDmodel_uri: the model URI processed for the nodemodel_plugin: the associated model plugin IDtarget_plugin: the target plugin ID processed on the rowtarget_uri: the target/destination media use URI for the rowexpected: a boolean, for if the target is expected- generally, if the source "original file" exists, the target is expected to exist
exists: a boolean, for if the target does existmessage: some descriptive text for the status of the row
The four columns related to the targets are nullable, if a model is found to be in use by a node that does not have one of our plugins describing it.
Troubleshooting/Issues
Having problems or solved a problem? Contact discoverygarden.
GNU parallel's --csv mode appears to break the use of --max-args,
necessitating the use of --block to limit how much work each spawned child
process receives; otherwise, each apparently receives the default --block size
of 1M.
Maintainers/Sponsors
Current maintainers:
Development
If you would like to contribute to this module, please check out the helpful Documentation, and contact discoverygarden.