-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Requesting desired number of workers
- Loading branch information
Showing
3 changed files
with
25 additions
and
8 deletions.
There are no files selected for viewing
4 changes: 1 addition & 3 deletions
4
src/RethinkDb.Azure.WebJobs.Extensions/Trigger/RethinkDbScaleMonitor.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
27 changes: 23 additions & 4 deletions
27
src/RethinkDb.Azure.WebJobs.Extensions/Trigger/RethinkDbTargetScaler.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 |
---|---|---|
@@ -1,16 +1,35 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using System.Threading.Tasks; | ||
using Microsoft.Azure.WebJobs.Host.Scale; | ||
|
||
namespace RethinkDb.Azure.WebJobs.Extensions.Trigger | ||
{ | ||
internal class RethinkDbTargetScaler : ITargetScaler | ||
{ | ||
public TargetScalerDescriptor TargetScalerDescriptor => throw new NotImplementedException(); | ||
#region Fields | ||
private readonly string _functionId; | ||
#endregion | ||
|
||
#region Properties | ||
public TargetScalerDescriptor TargetScalerDescriptor { get; } | ||
#endregion | ||
|
||
#region Constructor | ||
public RethinkDbTargetScaler(string functionId) | ||
{ | ||
_functionId = functionId; | ||
|
||
TargetScalerDescriptor = new TargetScalerDescriptor(_functionId); | ||
} | ||
#endregion | ||
|
||
#region Methods | ||
public Task<TargetScalerResult> GetScaleResultAsync(TargetScalerContext context) | ||
{ | ||
throw new NotImplementedException(); | ||
return Task.FromResult(new TargetScalerResult | ||
{ | ||
TargetWorkerCount = 1 | ||
}); | ||
} | ||
#endregion | ||
} | ||
} |
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