Scheduling Functions
Find out about scheduling functions that you have created with OCI Functions.
You can run the functions that you create with OCI Functions on a recurring schedule using the OCI Resource Scheduler. Scheduling functions to run at the same time each week, day, or hour enables you to automate some of the tasks associated with managing cloud infrastructure, such as:
- Maintenance and Housekeeping: Schedule functions to perform regular maintenance tasks. For example, database cleanup, log rotation, data archiving, cleanup of expired sessions in an application's cache, and monthly archiving of audit logs to long-term storage.
- Periodic Data Processing and Analytics: Run data processing or analytics jobs at set intervals. For example, to generate daily reports, to update dashboards, to aggregate sensor data every hour for trend analysis, and to process batched data on a schedule that meets business requirements.
- Machine Learning and AI: Schedule model retraining with new data to improve accuracy and performance. For example, by running periodic inference tasks at scheduled times to generate predictions or recommendations, by evaluating model performance daily and monitoring key metrics to detect drift, and by triggering alerts if performance drops below thresholds.
You use the OCI Resource Scheduler to schedule a function by creating a new resource schedule, and adding the function to that resource schedule. You can add additional functions to the same resource schedule later.
Note that to use Resource Scheduler, you must have been granted permission to manage resource schedules in the tenancy. Note also that before the function can be invoked according to the resource schedule, you have to create a dynamic group that includes the resource schedule, and a policy statement that grants the dynamic group access to the function. For more information, see Creating Schedules.
You can schedule functions using the Console, the CLI, and the API. See Scheduling a Function.