Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using URL instead of cron doesn't fetch emails #4000

Closed
kirschkern opened this issue Apr 26, 2024 · 2 comments
Closed

Using URL instead of cron doesn't fetch emails #4000

kirschkern opened this issue Apr 26, 2024 · 2 comments

Comments

@kirschkern
Copy link

kirschkern commented Apr 26, 2024

After updating to 1.8.137 we don't receive any new mails.
Instead of the cron job, we use the URL that gets shown below with the hint "use at own risk".
When calling this URL in the browser I get "No scheduled commands are ready to run."

In "system / status" I see the line
queue:work Last run: ? Last successful run: ? Try to clear cache to force command to start.
However, clearing the cache doesn't change anything.

Any hint would be great to get email fetching running again would be great.

We currently use the URL solution, because our server only alows cron jobs to run every 5 minutes which is way to long. We use a cron job from another server to call that URL.

When using the 5 minutes Cron job, the mails get fetched.

@freescout-helpdesk
Copy link
Collaborator

Fixed in the master branch and will be published in the next release.

Meanwhile you can simply change line 36 in /app/console/Kernel.php to:

if (!$this->isScheduleRun() && !\Helper::isRoute('system.cron')) {

@Hamza31231
Copy link

changed if (!$this->isScheduleRun()) {
to if (!$this->isScheduleRun() && !\Helper::isRoute('system.cron')) {

now it seems to work!

thank you very much !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants