Server IP : 104.21.14.48 / Your IP : 3.22.61.174 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/wp-content/mu-plugins/vendor/godaddy/mwc-core/configurations/ |
Upload File : |
<?php use GoDaddy\WordPress\MWC\Core\Features\Commerce\Backfill\Jobs\BackfillProductCategoriesJob; use GoDaddy\WordPress\MWC\Core\Features\Commerce\Backfill\Jobs\BackfillProductsJob; use GoDaddy\WordPress\MWC\Core\Features\Commerce\Catalog\Jobs\BatchCreateOrUpdateProductsJob; use GoDaddy\WordPress\MWC\Core\Features\Commerce\Catalog\Jobs\PatchProductCategoryAssociationsJob; use GoDaddy\WordPress\MWC\Core\JobQueue\DataObjects\BatchJobSettings; return [ /* * Registry of `QueueableJobContract` implementations. * Each job must have a registered, unique string key so that class names can be "serialized" upon insertion into * the Action Scheduler database. */ 'jobs' => [ BackfillProductCategoriesJob::JOB_KEY => [ 'job' => BackfillProductCategoriesJob::class, 'settings' => [ 'class' => BatchJobSettings::class, 'values' => [ ], ], ], BackfillProductsJob::JOB_KEY => [ 'job' => BackfillProductsJob::class, 'settings' => [ 'class' => BatchJobSettings::class, 'values' => [ // this is lower, as we're backfilling products and inventory in one job (double the API requests) 'maxPerBatch' => 30, ], ], ], BatchCreateOrUpdateProductsJob::JOB_KEY => [ 'job' => BatchCreateOrUpdateProductsJob::class, 'settings' => [ 'class' => BatchJobSettings::class, 'values' => [ 'maxPerBatch' => defined('MWC_MAX_PRODUCTS_PER_WRITE_BATCH') ? MWC_MAX_PRODUCTS_PER_WRITE_BATCH : 10, ], ], ], PatchProductCategoryAssociationsJob::JOB_KEY => [ 'job' => PatchProductCategoryAssociationsJob::class, 'settings' => [ 'class' => BatchJobSettings::class, 'values' => [ 'maxPerBatch' => 50, ], ], ], ], ];