A new WorkResultConsumerActor has been added to handle the processing of published events. This actor will receive events and process them accordingly based on their types (WorkAccepted, WorkStarted, etc.).
Also, the WorkManager.scala file was slightly modified to enable event publishing.
In Main.scala, a method createWorkResultsConsumer was added to initiate the WorkResultConsumerActor and subscribe it to the event stream. With these changes, all published events will now be handled properly by WorkResultConsumerActor.
A new WorkResultConsumerActor has been added to handle the processing of published events. This actor will receive events and process them accordingly based on their types (WorkAccepted, WorkStarted, etc.). Also, the WorkManager.scala file was slightly modified to enable event publishing. In Main.scala, a method createWorkResultsConsumer was added to initiate the WorkResultConsumerActor and subscribe it to the event stream. With these changes, all published events will now be handled properly by WorkResultConsumerActor.