• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Plesk Laravel scheduler runs console app twice

vanherst

New Pleskian
I have added the Laravel scheduler as a scheduled task to Plesk see picture below

CdrFR.png


I have added the following lines to app\Console\Kernel.php.

$schedule->command('*********')->dailyAt('06:00')->evenInMaintenanceMode()->runInBackground()->withoutOverlapping(10)->emailOutputTo('info@*****.com');

Everythings looks fine but the job is running twice, I get the following email notifications:

1. Scheduled Job Output For ['/usr/bin/php7.4' 'artisan' ***********]
2. Scheduled Job Output For ['/opt/plesk/php/7.4/bin/php' 'artisan' ***********]

What have I done wrong?

Output of `crontab -l`:

MAILTO=""
SHELL="/bin/bash"
* * * * * cd /var/www/vhosts/*******.com/httpdocs && /opt/plesk/php/7.4/bin/php artisan schedule:run >> /dev/null 2>&1

And the same for root:
0 1 * * 1 /usr/local/psa/libexec/modules/watchdog/cp/secur-check
0 1 * * 1 /usr/local/psa/libexec/modules/watchdog/cp/send-report weekly
10 1 * * * /usr/local/psa/libexec/modules/watchdog/cp/clean-sysstats
15 1 * * * /usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats day
15 1 * * 1 /usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats week
15 1 1 * * /usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats month
15 1 1 * * /usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats year
20 1 * * * /usr/local/psa/libexec/modules/watchdog/cp/clean-events
0 3 * * 7 /usr/local/psa/libexec/modules/watchdog/cp/clean-reports
47 23 * * * /usr/sbin/ntpdate -b -s 2.pool.ntp.org

I did some more testing.
If I execute a function with $schedule->call() it is running once.
 
Back
Top