Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not possible to tell if message is queued vs published #10

Closed
bedrock-adam opened this issue Mar 13, 2024 · 1 comment
Closed

Not possible to tell if message is queued vs published #10

bedrock-adam opened this issue Mar 13, 2024 · 1 comment

Comments

@bedrock-adam
Copy link
Contributor

bedrock-adam commented Mar 13, 2024

Proposing new status backlogged to help differentiate between Backlogged vs queued messages e.g.

stateDiagram-v2
    [*] --> Backlogged: Message is stored in database
    Backlogged --> Queued: Message is in memory, waiting for publishing
    Queued --> Publishing: Message is being published
    Publishing --> Failed: Message publishing failed
    Publishing --> [Deleted]: Message was published successfully
Loading
All -> Message.order(updated_at: :desc)
Backlogged -> Message.where(status: 'backlogged').order(updated_at: :asc)
Queued -> Message.where(status: 'queued').order(updated_at: :asc)
Publishing -> Message.where(status: 'publishing').order(updated_at: :asc)
Failed -> Message.where(status: 'failed').order(updated_at: :asc)
@bedrock-adam
Copy link
Contributor Author

completed with #30 #31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant