-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add a "leasedby" column #16
Conversation
For now just a column useful for introspection scenarios. In future it may be used to further validate the lease (eg. Option to not allow renewal / forceful takeover of a lease if it belongs to someone else. Needs thought for cloud scenarios where entire workers may vanish)
@@ -210,7 +210,7 @@ static void InitializeDatabase(string databaseName) | |||
static string GetConnectionStringForDatabase(string databaseName) | |||
{ | |||
return Environment.GetEnvironmentVariable("REBUS_SQLSERVER") | |||
?? $"server=.; database={databaseName}; trusted_connection=true;"; | |||
?? $"server=.\\SqlExpress; database={databaseName}; trusted_connection=true;"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
???
😁
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
D'oh! Will roll that back when I get home. Was debugging something locally.
________________________________
From: Mogens Heller Grabe <notifications@github.com>
Sent: Monday, August 28, 2017 6:27:42 PM
To: rebus-org/Rebus.SqlServer
Cc: Michael Davidson; Author
Subject: Re: [rebus-org/Rebus.SqlServer] Add a "leasedby" column (#16)
@mookid8000 commented on this pull request.
________________________________
In Rebus.SqlServer.Tests/SqlTestHelper.cs<#16 (comment)>:
@@ -210,7 +210,7 @@ static void InitializeDatabase(string databaseName)
static string GetConnectionStringForDatabase(string databaseName)
{
return Environment.GetEnvironmentVariable("REBUS_SQLSERVER")
- ?? $"server=.; database={databaseName}; trusted_connection=true;";
+ ?? $"server=.\\SqlExpress; database={databaseName}; trusted_connection=true;";
???
😁
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#16 (review)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABTY6ddNNzyBBREkyJiLuKhzsIHtK1xDks5scnn-gaJpZM4PCSJm>.
|
😁 |
I don't think I can re-run the build for this... but the it's failing because of a file lock it seems. Re-running it should fix it. |
excellent work! 😁 it will take a little while for me to go through this .... it'll be out in Rebus.SqlServer 5 pre, probably a little later today |
Awesome :) Will be nice to switch to using a nuget package instead of my copy/paste versions of |
super! one thing, though – is it intentional that there is no one-way client configuration for the lease-based transport? |
Not intentional, no, just not something I'm familiar with. Is that an easier set up path where people only insert into the queue but don't process it? Can't see any technical reason that wouldn't work. |
Yes, it's simply a send-only Rebus endpoint, i.e. one that doesn't have an input queue, avoiding the need to spin up worker threads, etc. I'll go add it – as the transport seems to satisfy the contract tests, e.g. accepting to be instantiated with a |
Yeah - if |
it's out in 5.0.0-b1 now 😄 |
For now just a column useful for introspection scenarios. In future it may be used to further validate the lease (eg. Option to not allow renewal / forceful takeover of a lease if it belongs to someone else. Needs thought for cloud scenarios where entire workers may vanish)
Rebus is MIT-licensed. The code submitted in this pull request needs to carry the MIT license too. By leaving this text in, I hereby acknowledge that the code submitted in the pull request has the MIT license and can be merged with the Rebus codebase.