Closed
Description
Symfony version(s) affected
6.4
How to reproduce
Wire a class containing the following into a framework app with scheduler.
#[AsPeriodicTask('PT30M', arguments: ['arg_1'])]
#[AsPeriodicTask('PT30M', arguments: ['arg_2']')]
public function method(string $arg): void {}
Description
Fails to instantiate a Schedule
with Duplicated schedule message.
Visibly, they are different tasks, but ServiceCallMessage::__toString()
does not consider arguments.
Possible Solution
Serialize args, potentially crc32 them too, into ServiceCallMessage::__toString()