PHP code example of bsidev / bitrix-queue

1. Go to this page and download the library: Download bsidev/bitrix-queue library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bsidev / bitrix-queue example snippets


    
    
    // local/php_interface/init.php
    
    use Bitrix\Main\Loader;
    use Bsi\Queue\Queue;
    
    // ...
    
    if (Loader::

    http://домен/bitrix/admin/partner_modules.php?id=bsi.queue&lang=ru&install=Y
    
shell
   php bitrix/bitrix.php bsi.queue:consume async --time-limit=3600
   
shell
    php bitrix/modules/bsi.queue/bin/console messenger:consume async --time-limit=3600