How do you create loop function work in background service?

Hello Guys

im trying to send trigger from mysql database to push notification using web1 component
i want to create a loop function where it must be executed every hours one time in background service ,

as shown from the picture i want to call web1.get every one hour inorder to check weather its allowed to push notification or not .

i have added background task extension but i dont know how to use it

appreciate your help :pray: