Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Missing command execution - Scheduler #59992

Open
@hdumazeau

Description

@hdumazeau

Symfony version(s) affected

6.4

Description

One of my command didn't work this night.
Using the Scheduler.
A consume that manages the scheduler only.
A consume that manages the final execution of commands / other asynchronous messages.

How to reproduce

I have a command that needs to run every hour (#[AsCronTask('0 * * * *', transports: 'async')])

I have a command that must run every night at 1am (#[AsCronTask('0 1 * * *', transports: 'async')])

Run bin/console messenger:consume scheduler_default --limit=10

If my consume has executed 9 messages, and 1am arrives:

  • my command, which should run every hour, has been inserted in my async queue
  • consume is finished since 10 messages have been reached
  • a new consume starts immediately
    => My 2nd command command which is supposed to run at 1am has not been inserted in my async queue

I use statefull option with RedisCacheAdapter (I see 01:00:00.00.000000 DateTimeImmutable in redis)

I use a --limit to avoid excessive memory consumption in the event of a memory leak.
Is it normal for the 2nd order not to be executed when it's still 01:00 ?

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp