cron_groups.xml
<?xml version="1.0"?>
<group id="custom_crongroup">
<schedule_generate_every>5</schedule_generate_every>
<schedule_ahead_for>10</schedule_ahead_for>
<schedule_lifetime>15</schedule_lifetime>
<history_cleanup_every>10</history_cleanup_every>
<history_success_lifetime>60</history_success_lifetime>
<history_failure_lifetime>600</history_failure_lifetime>
<use_separate_process>1</use_separate_process>
</group>
crontab.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
<group id="custom_crongroup">
<job name="monthly_commission" instance="Rewamp\Promotion\Cron\Run" method="execute">
<schedule>*/5 * * * *</schedule>
</job>
</group>
This cusotm cron is working correctly when i run the cron,
php bin/magento cron:run
from terminal. But i need to run the cron automatically in every 5 minutes. how can i implement this?.