Configuration
Installation-wide settings. For individual feed settings, see Feed form and grid.
Settings
Each is set once for the whole installation, under Stores → Configuration → Arlanix.
| Path | Default | Admin field | What it does |
|---|---|---|---|
arlanix_product_feed/schedule/run_history_days |
30 |
Feeds → Building and delivery → Keep run history for (days) | How long the arlanix_product_feed_clean_runs job keeps runs. A run that delivered everything and warned of nothing is kept 3 days, or this long when it is less. 0 keeps every run. The latest completed run and any run in progress are kept for each feed. |
arlanix_logging/log/level |
debug |
Logging → Log → Log level | The least severe messages written to var/log/arlanix.log; see Log level. |
arlanix_product_feed/schedule/stuck_after |
30 |
Developer → Feeds → Stopped responding after (minutes) | Minutes a run may go without reporting progress before it is marked Stopped responding, once its process has ended. At least 5; a lower value counts as 5. |
arlanix_sftp/transfer/connect_timeout |
10 |
Developer → SFTP delivery → Connection timeout (seconds) | Seconds an SFTP delivery may take to reach the server, agree the keys and log in. |
arlanix_sftp/transfer/response_timeout |
30 |
Developer → SFTP delivery → Response timeout (seconds) | Seconds an SFTP server may take to answer any one request once logged in. |
arlanix_sftp/transfer/minimum_speed |
50 |
Developer → SFTP delivery → Minimum upload speed (KB/s) | KB a second an SFTP upload must average. A file is given its size at this speed, and at least a minute. |
arlanix_google_merchant/api/connect_timeout |
5 |
Developer → Google Merchant Center API → Connection timeout (seconds) | Seconds a Merchant API call may take to reach Google. |
arlanix_google_merchant/api/request_timeout |
20 |
Developer → Google Merchant Center API → Request timeout (seconds) | Time limit for the whole request, including the connection. |
The Developer section is shown only to admin roles given Stores → Settings → Configuration → Arlanix Developer Settings under System → Permissions → User Roles → Role Resources. A role with all resources sees it too.
What the SFTP and Merchant API limits do when they are hit is on their own pages: see When the server is slow or down and When Google refuses the account, or does not answer.
Set a value from the command line
Use bin/magento config:set with the setting’s configuration path. For example, to give a slow SFTP upload more time, lower the minimum speed:
bin/magento config:set arlanix_sftp/transfer/minimum_speed 20
Use --lock-env to write the value to app/etc/env.php and lock it for that environment. The admin shows the locked value as read-only.
Log level
arlanix_logging/log/level sets the minimum severity written to var/log/arlanix.log. Keep the default debug while diagnosing a problem.
The log level values are debug, info, notice, warning, error, critical, alert and emergency. The resolver also accepts the corresponding numeric log levels and falls back to debug for an unknown value.
Set it under Stores → Configuration → Arlanix → Logging, clearing Use system value, or use config:set. Locked settings must be changed in the environment configuration; see Set a value from the command line.
Notifications
With the optional Magento module Arlanix_Notification enabled, feed events declared in etc/arlanix_notification_events.xml are emitted through arlanix_notification_emit. Store rules choose their destinations: see Get told when a feed fails.
| Event | Code | Sent when |
|---|---|---|
| Feed failed | feed_failed |
When a problem first occurs or changes between failed, refused and stuck. Recovery sends the same event with severity info. |
| Products left out | feed_products_left_out |
Exclusions grow enough to trigger an alert. |
| Products refused by the channel | feed_products_refused |
Channel refusals grow enough to trigger an alert. |
Every event has feed.id (the integer ID of the affected feed), feed.identifier, feed.type, feed.channel, feed.store_id and feed.store. Feed failed adds feed.state (problem or recovered), feed.problem (failed, refused or stuck, and on a recovery the one it recovers from), feed.summary and feed.reason. The other two add products.left_out or products.refused, products.new and products.summary.
Product alerts accumulate growth between notifications. A feed with earlier runs but no recorded counts establishes its baseline on the next delivery. A feed delivering for the first time compares its counts with zero.
After a change to the XML, run bin/magento cache:clean config.