#Calling a function inside execute function of Jobs

1 messages · Page 1 of 1 (latest)

shy stream
#

Hi Team,
I'm trying to implement a scheduled task using Ballerina. I've written a function ( using http client to call an endpoint ) inside Job class and tried calling that function inside execute function. But it is giving a compilation error saying "Undefined function". I've used https://ballerina.io/learn/by-example/task-frequency-job-execution/ as a reference. Am I missing anything?

BBE on how to schedule the frequency job execution in Ballerina.

brittle falcon
#

Is it possible to share a sample? Hope you are using self when calling the method (self.fn())?