spiral-modules / jobs

RoadRunner: Background PHP workers, Queue brokers
MIT License
60 stars 11 forks source link

Separate interface HandlerInterface to specific ones #26

Closed bjuri closed 4 years ago

bjuri commented 4 years ago

Some kind of


Serializable interface with methods
    public function serialize(string $jobType, array $payload): string;
    public function unserialize(string $jobType, string $payload): array;

HandlerBased interface with method
    public function handle(string $jobType, string $jobID, array $payload): void;