I have created a simple HelloWorld .NET core 2.0 console application. I want to schedule it to run every 5 minutes using scheduler for PCF service.
The steps I followed are:
But I am not sure what i should pass for COMMAND argument of create-job.
If I succeed in creating the job and then I will cron it using the following command:
Please help me in this regard. Please let me know, if you need further details.
Thanks in advance.
cf Create-job <<AppName>><<job-name>> "dotnet <<AppassemblyName>>.dll "<<Parameters to the console application>>""
cf schedule-job <<job-name from previous steps>> "*/5 * ? * *"
This link helped be a lot https://starkandwayne.com/blog/schedule-containers-in-pivotal-cloud-foundry/