Skip to content

Instantly share code, notes, and snippets.

@hipot
Created August 22, 2026 13:52
Show Gist options
  • Select an option

  • Save hipot/a67d4ae8e1867a3b0226af9f7a33594f to your computer and use it in GitHub Desktop.

Select an option

Save hipot/a67d4ae8e1867a3b0226af9f7a33594f to your computer and use it in GitHub Desktop.
restore agents (cron) and use default-script: /bitrix/modules/main/tools/cron_events.php
// restore agents (cron)
COption::SetOptionString("main", "agents_use_crontab", "Y");
echo COption::GetOptionString("main", "agents_use_crontab", "N");
COption::SetOptionString("main", "check_agents", "Y");
echo COption::GetOptionString("main", "check_agents", "N");
COption::SetOptionString("main", "mail_event_bulk", "20");
echo COption::GetOptionString("main", "mail_event_bulk", "5");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment