Skip to content

Commit

Permalink
initial commit (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
bachuv authored Oct 10, 2023
1 parent d9550b7 commit 3a2d193
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
<PropertyGroup>
<MajorVersion>1</MajorVersion>
<MinorVersion>4</MinorVersion>
<PatchVersion>0</PatchVersion>
<PatchVersion>1</PatchVersion>
<VersionPrefix>$(MajorVersion).$(MinorVersion).$(PatchVersion)</VersionPrefix>
<VersionSuffix></VersionSuffix>
<VersionSuffix>private</VersionSuffix>
<AssemblyVersion>$(MajorVersion).0.0.0</AssemblyVersion>
<BuildSuffix Condition="'$(GITHUB_RUN_NUMBER)' != ''">.$(GITHUB_RUN_NUMBER)</BuildSuffix>
<FileVersion>$(VersionPrefix)$(BuildSuffix)</FileVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,12 @@ class ScaleMonitor : IScaleMonitor<NetheriteScaleMetrics>
public ScaleMonitor(ScalingMonitor scalingMonitor)
{
this.scalingMonitor = scalingMonitor;
this.descriptor = new ScaleMonitorDescriptor($"DurableTaskTrigger-Netherite-{this.scalingMonitor.TaskHubName}".ToLower());

// appending random GUID to end of descriptor to keep scale monitor keys unique
string guid = Guid.NewGuid().ToString("N");

var descriptorId = $"DurableTaskTrigger-Netherite-{this.scalingMonitor.TaskHubName}-{guid}".ToLower();
this.descriptor = new ScaleMonitorDescriptor(descriptorId);
}

public ScaleMonitorDescriptor Descriptor => this.descriptor;
Expand Down

0 comments on commit 3a2d193

Please sign in to comment.