Reading list Switch to dark mode

    Akeneo CRON Scheduler

    Updated 11 January 2024

    Introduction

    With the help of this module, you will have a UI option for easily creating CRON jobs in Akeneo.

    Akeneo CRON Scheduler allows CRON jobs on a daily, weekly, and monthly basis. Akeneo CRON job automates your import /export process in Akeneo.

    You can enable custom cron by which you can add your custom cron time for the job. You can set the CRON scheduler, and it will run automatically.

    Basic Requirement

    • This module works with Akeneo 2. x, 3. x, 4. x,5.x,6. x & 7.x. Download Akeneo from here
    • This module is compatible with the Akeneo community and Enterprise(Flexibility) edition.
    • If you want to use this extension on Akeneo EE Serenity mode, please contact us.
    • For the Akeneo installation, your Akeneo server should meet these system requirements.

    Features

    • Schedule your CRON job at the base of daily, hourly weekly, and monthly.
    • The UI-based CRON job performs delete, and status change operations on CRON jobs.
    • You can add your custom cron time for the job by enabling the Check Custom Cron.
    • The export/Import job will be added to the user process tracker.
    • Akeneo CRON Scheduler is compatible with the latest Akeneo version 7.0.x
    • You can automate the process with the help of the Akeneo CRON job.
    • Export products with the help of CRON job to different e-commerce channels.
    • You can set a CRON scheduler for any e-commerce channel.
    • Enable and disable the cron Job via crontab cli on terminal

    Video Tutorial

    Check out the video tutorial below:

    How to create CRON Scheduling in Akeneo?

    fmX6M8lsDjI

    Composer Installation

    Before beginning the composer installation

    Searching for an experienced
    Akeneo Company ?
    Find out More

    1: Get the ACCESS KEYS [Create a support ticket]
    2: In Akeneo composer.json, add our repository as well as the installation script.

    For Akeneo 6.x and 7.x

    {	
      "scripts": {	
            "post-update-cmd": [	
               "vendor/webkul/schedulecronbundle/src/Webkul/ScheduleCronBundle/install/config.sh COMPOSER=true NO_DOCKER=true"	
            ],	
            "post-install-cmd": [	
               "vendor/webkul/schedulecronbundle/src/Webkul/ScheduleCronBundle/install/config.sh COMPOSER=true NO_DOCKER=true"	
            ],	
            "post-create-project-cmd": [	
              "vendor/webkul/schedulecronbundle/src/Webkul/ScheduleCronBundle/install/config.sh COMPOSER=true NO_DOCKER=true"	
           ]	
       },	
      "repositories": [{	
        "type": "composer",	
        "url": "https://akeneorepo.webkul.com/"	
      }]	
    }	
    

    3: Use composer to install the extension.

             composer require webkul/schedulecronbundle
    

    4: Complete the authentication form.
    5: Send a Message of Success
    6: Delete your browser’s cache.

    Manual Installation For Akeneo 6 and Akeneo 7

    •  After unzipping the appropriate extension zip, merge the “src” folder into the akeneo project.
    • From the PIM directory, run the following command over the NO-DOCKER Instance.
        ./src/Webkul/ScheduleCronBundle/install/config.sh COMPOSER=false NO_DOCKER=true
    
    •  Run the command below over the PIM directory’s DOCKER instance.
        ./src/Webkul/ScheduleCronBundle/install/config.sh COMPOSER=false NO_DOCKER=false
    

    Installing Module for Version 4.0.x to  5.0.x

    Please follow these steps for installing the Akeneo CRON scheduler module in your Akeneo PIM platform.

    • Unzip the respective extension zip then merge “src” folder into the Akeneo project root directory.

    src-cms-1

    • Goto config/Bundles.php then add line:
       Webkul\ScheduleCronBundle\ScheduleCronBundle::class => ['all' => true],

    corn-

               in return array.

    • Copy the “config” folder into akeneo project root directory for routing.

    conf-cms-1

    • You have to navigate first to Akeneo installation directory (Ex: cd /opt/bitnami/apps/akeneo/htdocs). After SSH, you have to run the command to your Akeneo server by the terminal.
    php bin/console ca:cl --env=prod && php bin/console cron:setup:install --env=prod
    •  If you are using php-fpm then you need to restart the php-fpm services and apache web server.

      For Akeneo 5

      sudo service php-fpm7.4 restart

      For Akeneo 4

      sudo service php-fpm7.3 restart

    Installing Module for Version 2.x to 3.x

    Please follow these steps for installing the Akeneo CRON scheduler module in your Akeneo PIM platform.

    • Unzip the respective extension zip then merge “src” folder into the Akeneo project root directory.

    src-cms-1

    • Goto app/AppKernel.php then add the following line in function registerProjectBundles()
      Code in AppKernel.php File
    new Webkul\ScheduleCronBundle\ScheduleCronBundle(),
    • After that goto app/config/routing.yml then add these lines at top of the file
      Code in Routing.yml file
    schedule_cron:
        resource: "@ScheduleCronBundle/Resources/config/routing.yml"
        prefix:   /
    
    • You have to navigate first to Akeneo installation directory (Ex: cd /opt/bitnami/apps/akeneo/htdocs). After SSH, you have to run the command to your Akeneo server by the terminal.
    php bin/console ca:cl --env=prod && php bin/console cron:setup:install --env=prod
    • If you are using php-fpm. Then you need to restart the php-fpm services.

      sudo service php-fpm7.2 restart

    Common Issues After Installation

    It might happen that even after proper installation, upon opening your Akeneo admin dashboard, you see a loading screen. In that case, do check for the following solution:

    • Webpack Installation: If you get the below error Webpack error It means that web pack is not installed in your system. Run the following command
      npm install --save-prod webpack
      npm install
      
    • Module routing.yml is not configured properly. Re-check the routing.yml file as mentioned in the 3rd step of Module Installation
    • Clear your browser cache.

    Uninstall Module: For Akeneo 6 and Akeneo 7

    • From the PIM directory, run the command below over the NO-DOCKER Instance.
        ./src/Webkul/ScheduleCronBundle/uninstall/uninstall.sh COMPOSER=false NO_DOCKER=true
    
    • Run the command below over the PIM directory’s DOCKER instance.
        ./src/Webkul/ScheduleCronBundle/uninstall/uninstall.sh COMPOSER=false NO_DOCKER=false
    

    Set up  Your Job Schedule

    After successfully installing the module in Akeneo, you need to set up the Akeneo CRON Scheduling in Akeneo. Please log into Akeneo and follow Schedule Cron – >Create Schedule. Here you have to fill the details.

    • Cron Name – You have to enter your CRON job profile name. You can enter any job profile name according to your choice.
      cron-name
    • Check Custom Cron – In this, you have to enable this to add your custom cron time for the job.

    custom cron

    • Interval Day – You can select an interval day by which you can schedule your CRON job as  Minute, Daily, Weekly, Monthly, and Hourly.

    Interval-day-required-03

    • Interval Time – You can select interval time according to your interval day like if you select the interval day as Weekly then it shows the days name.
      interval-time-required-04
    • Job Profile Name – You can see your all made job profile name you can choose the job profile name for exporting the product to the different channel.
      Job-profile-name-required-05
    • Job Schedule Time – You will find two options you can select one of them according to your choice.
    • Export/Import using job Queue: If you choose this as the job type you can run jobs as many as you want in parallel. It will not wait for the response of the job it runs the job in parallel.
    • Export/Import as Normal Job: If you choose this as a job type then one job will run at a time any other job will not until you will not get any response.

    job-schedule-type-06

    Here you have to fill in all the details to schedule a CRON job.

    cretae-cron-scheduler-07-

    fter filling the details you have to click on the save button. If you disable the custom cron then the default values will be selected for Intervals and jobs.The Cron schedule will be updated. You can also activate and deactivate the Akeneo CRON Scheduler.

    Create Product In Akeneo

    To create a product in Akeneo, go to navigate to Products then click Create button. Now, you need to choose product type – as Product or Product Model.

    Product – Select this type for creating simple and virtual products.

    Product Model – Select this type for creating a configurable product with variations.

    Create-08

    Now enter the required SKU, choose a family, then click the Save button.

    Product Family – A family is a set of attributes that will be the same for all products belonging to a family. The product family represents products type, imposes product information structure and defines the list of attributes for a product that it belongs.

    create-product-09-1

    Product List

    After creating the product in Akeneo you can check the product list. You will found all the product list created by you or exported from any channel.

    product-list-09

    Schedule a CRON Export/Import job in Akeneo

    You have to make a CRON job for your product, category, attribute in Akeneo. Then you can perform import/export with the scheduling of a CRON job.

    Creating-job-profile-10-1

    Now you can schedule a CRON export job in Akeneo. After that you can export/import the product different e-commerce channel, Mobile, and Print Catalog. When you schedule an export profile it will run at that time.

    Export-profiles-11

    Execution Process:

    Wait for the execution process to complete. After the completion of the export job.

    export-job-status-12

    After the successful running of the CRON job, you can check details on the Process tracker.

    Process-tracker-13

    Support

    So, that was much about the User Guide of Akeneo CRON Scheduler for any queries or doubts reach out to us at [email protected]. You can also raise a ticket at our HelpDesk System.

    Please explore our Akeneo Development Services and Quality Akeneo Extensions.

    Current Product Version - Akeneo 2 to 5 || 3.0.0, Akeneo 6 || 4.0.0 and Akeneo 7 || 5.1.0

    Supported Framework Version - Akeneo 2.x.x & 3.x.x & 4.x.x, 5.x.x,6.x.x&7.x.x

    Blog Version - Akeneo 2.x.x & 3.x.x & 4.x.x, 5.x.x,6.x.x&7.x.x
    • Version Akeneo 2.0.x, 2.1.x, 2.2.x, 2.3.x, 3.0.x, and 3.1.x
    • Version Akeneo 2.0.x, 2.1.x, 2.2.x, 2.3.x, 3.0.x, 3.1.x, 3.2.x and 4.0.x
    • Version Akeneo 2.0.x, 2.1.x, 2.2.x, 2.3.x, 3.0.x, 3.1.x and 3.2.x
    • Version Akeneo 2.x.x & 3.x.x & 4.x.x, 5.x.x,6.x.x&7.x.x
    • Version Akeneo 2.x.x & 3.x.x & 4.x.x, 5.x.x & 6.x.x
    • Version Akeneo 2.x.x & 3.x.x & 4.x.x & 5.x.x
    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    Be the first to comment.

    Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home

    Table of Content