- Common task queue issues
- Scaling task queues
- Dealing with api limits in task queues
- https://divinglaravel.com/dealing-with-api-rate-limits-in-queued-jobs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from abc import ABC, abstractmethod | |
class Specification(ABC): | |
@abstractmethod | |
def is_satisfied_by(self, candidate) -> bool: | |
raise NotImplementedError() | |
class CompositeSpecification(Specification, ABC): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Models; | |
use Closure; | |
use Illuminate\Contracts\Auth\Authenticatable; | |
use Illuminate\Database\Eloquent\Builder; | |
class Order extends TenantableModel | |
{ |