-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix inbox starvation by continuous postponing next message handling
- Loading branch information
1 parent
5e094a1
commit 490f8a6
Showing
13 changed files
with
819 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
101 changes: 101 additions & 0 deletions
101
...ications.Infrastructure/Persistence/Migrations/20240506223822_InboxStarvation.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
...mUp.Notifications.Infrastructure/Persistence/Migrations/20240506223822_InboxStarvation.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System; | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace TeamUp.Notifications.Infrastructure.Persistence.Migrations | ||
{ | ||
/// <inheritdoc /> | ||
public partial class InboxStarvation : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AddColumn<int>( | ||
name: "FailCount", | ||
schema: "Notifications", | ||
table: "InboxMessages", | ||
type: "integer", | ||
nullable: false, | ||
defaultValue: 0); | ||
|
||
migrationBuilder.AddColumn<DateTime>( | ||
name: "NextProcessingUtc", | ||
schema: "Notifications", | ||
table: "InboxMessages", | ||
type: "timestamp with time zone", | ||
nullable: true); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropColumn( | ||
name: "FailCount", | ||
schema: "Notifications", | ||
table: "InboxMessages"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "NextProcessingUtc", | ||
schema: "Notifications", | ||
table: "InboxMessages"); | ||
} | ||
} | ||
} |
This file contains 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
Oops, something went wrong.