Real-Dev-Squad/identity-service

A function for resolving pending profiles

Opened this issue · 2 comments

In identity service, we have a function verify that as it says, verifies the user profile. So the way identity service works is, you have to put your profile service Url in mysite and generate a chaincode from there and put it in identity service then you press verify button, mysite call the nodeJS backend where we set the profileStatus to PENDING, and that backend calls the identity service verify to verify the profile service without waiting for its response. But sometimes that verification call doesn't happen or the identity service is in the deployment phase, and the status stays PENDING.

For that, we want to make a function that is scheduled every week which checks for pending profiles and makes a verification call for them.

Are we supposed to add a function to cron jobs?
If yes, which cron job library do you recommend ?

Cron jobs are already handled by AWS itself