Skip to content

Commit

Permalink
add cronjob example
Browse files Browse the repository at this point in the history
  • Loading branch information
pgallik committed Dec 11, 2023
1 parent 86ed860 commit f4af901
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

<ItemGroup>
<Compile Include="..\..\SolutionInfo.cs" Link="Properties\SolutionInfo.cs" />
<Compile Remove="Migrations\20231211132903_alter_address_niscode_toInt.cs" />
</ItemGroup>

<Import Project="..\..\.paket\Paket.Restore.targets" />
Expand Down
18 changes: 18 additions & 0 deletions src/Basisregisters.IntegrationDb.Schema/Models/CronJobs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,23 @@
{
public static class CronJobs
{
public static void Test()
{
// var cron = $@" SELECT cron.schedule('*/1 * * * *', $$
//
// select "PersistentLocalId"
// FROM "Integration"."Addresses"
// LIMIT 1;
//
//
// select top(1)
// FROM "Integration"."Parcels"
// LIMIT 1;
// $$);
// ";

// SELECT cron.unschedule(3);

}
}
}

0 comments on commit f4af901

Please sign in to comment.