Unable to fetch useProductContext information with a scheduler function

I have been trying to fetch product context info through a scheduler function below is my manifest file
- key: scheduled-trigger
function: createExistingIssues
interval: hour

- key: tracker
resource: main
function: resolver
title: "Tracker "

as you can iam creating a function named createExistingIssues and inside of it iam trying to get the product context , but it’s simply returning an empty object ,

Is there a way I can make it work