Scheduling
Scheduling PHP
Scheduled Method
class NotificationService
{
#[Scheduled(endpointId: "notificationSender")]
#[Poller(fixedRateInMilliseconds: 1000)]
public function sendNotifications(): void
{
echo "Sending notifications...\n";
}
}console ecotone:list
+--------------------+
| Endpoint Names |
+--------------------+
| notificationSender |
+--------------------+artisan ecotone:list
+--------------------+
| Endpoint Names |
+--------------------+
| notificationSender |
+--------------------+$consumers = $messagingSystem->list()Scheduled Handler
Expression Language
Materials
Demo implementation
Links
Last updated
Was this helpful?