Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-scales committed Jan 24, 2024
1 parent eee6169 commit 29adb69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions FU.API/FU.jobs/FU.jobs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.20.1" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Timer" Version="4.3.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.16.4" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions" Version="5.0.0" />
</ItemGroup>
Expand Down
4 changes: 3 additions & 1 deletion FU.API/FU.jobs/JobFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TimerInfo = Microsoft.Azure.Functions.Worker.TimerInfo;
using TimerTriggerAttribute = Microsoft.Azure.Functions.Worker.TimerTriggerAttribute;

public class JobFunction
{
[FunctionName("CheckExpiredPosts")]
[Function("CheckExpiredPosts")]
public async Task CheckExpiredPosts([TimerTrigger("0 */1 * * * *")] TimerInfo timer)
{
var config = new ConfigurationBuilder()
Expand Down

0 comments on commit 29adb69

Please sign in to comment.