How to run Kubeflow pipelines periodically? - pipeline

I have pipelines on Kubeflow pipelines can be run on the pipelines UI.
My pipelines should be executed at the specified time like crontab.
How can I execute the pipelines periodically?

I haven't tried scheduling pipelines yet, but hopefully this may help.
From the Kubeflow Pipelines UI, create an experiment for your pipeline. On the experiment page for your pipeline, there is an option to Create recurring run. Follow the instructions on that form to schedule runs for your pipeline.

Related

Trigger a Donet console application from outside the container

We have a requirement to trigger(using a JCL command) a Dotnet Core Console application (hosted on a PCF container) from outside the container. What would be a good solution approach in this context.
One option we have is to convert the console app into a web api and host an API endpoint which can be called from external sources. Web api can then trigger a long running task (may be use something like Hangfire to handle the execution). Would like to hear if there are better approaches that can be used here. Thanks in advance.
Cloud Foundry includes support for running tasks which might be all you need. Additionally, Steeltoe includes some functionality for building tasks into your application. There is a Steeltoe Sample that can run EntityFramework migrations via cf runtask

how to schedule a reload of a qlikview application after successful completion of ETL process which runs on Informatica in UNIX environment

We have Qlikview application ready. we are moving application to production environment.
Now we need to schedule a reload of this application after successful completion of ETL process which is runs on informatica in unix environment.
Any suggestions or ideas how to do that, please.
Thank you.

Both production and staging server running same cron in Azure

I have created an ASP.NET application which is deployed on Azure.
Every time whenever I want to publish it on Azure, I make use of a staging server to deploy and after testing everything on staging, I just swap both of them.
But there is a problem, I have some startup tasks that create some scheduled tasks for cron jobs. So, these task are also copied to production server from staging and cron jobs are run two times one on production and second in staging. But I want them only to run on production not on staging.
How can I prevent this duplicated cron job problem? Please give me some suggestions.
There is no easy way in order to distuinguish staging and production environments.
If I do remember correctly, you could use the Server Management REST Api to get more details about the current deployment. You just need to get the RoleEnvironment.DeploymentId and communicate with the REST Api by providing a valid X509 Certificate.
http://msdn.microsoft.com/en-us/library/windowsazure/ee460806.aspx

Scheduler for ASP.NET?

I want to run some of my apps code every night in some sort of task or scheduler. Is there any build in functionality in the framework? If not, whats an easy 3rd party framework to get scheduling?
Thanks
You can create a console application and run it as a scheduled task. Alternatively you could look at using Quartz.Net which is a port of the Java Quartz, a framework for scheduling jobs.
Either way your finished product will likely be a console application that is scheduled to run with scheduled tasks, or a class library as a Windows Service. ASP.NET its self won't do the scheduling.
If you can, you could use IIS 7.5 Application Warm-Up Module : http://blogs.iis.net/thomad/archive/2009/10/14/now-available-the-iis-7-5-application-warm-up-module.aspx

Scheduled tasks for ASP.NET

How to execute asp.NET code in scheduled task of windows?
I've often used wget / curl to do exactly this from windows scheduled tasks (or even from cron on a different server). For certain things it is better to keep it all within the web application.
e.g.
curl -k https://example.com/update.aspx?id=71077345 -u username:password
or
wget -O - http://example.com/process.php
ASP.Net has good integration with Windows Workflow (WF). I've accomplished 2 project with such integration. WF allows persists tasks, so it is independent on IIS restarting or system crash
The simplest and probably the easiest way to do this is to make the code a command line app and then execute it using the Windows Scheduler found in Control Panel.
If you have full access to the server, use the scheduled tasks.
If you do not have access (shared hosting), create a webpage/service that you can call to trigger the action. Be aware that the "action" is limited in time.
You could create a small application, that you can schedule on you own computer to call the remote server, to trigger the action.
There is no way to schedule ASP.NET code from within a web application, because the web is stateless.
My preferred method to schedule .NET code, is to write a windows service that I install on the web server. See. http://blog.dogma.co.uk/search/label/windowsservice.
An quicker, less efficient, way is to add the code to a page and execute that page from Windows Scheduled Tasks.
Rich

Resources