You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何配置Azure Web Job在上午每15分钟、下午每30分钟运行

Solution for Azure Web Job Scheduling: 15-Minute AM, 30-Minute PM

Got it, let's get your Azure Web Job's schedule sorted out! Since you're already working with the settings.job file, this is straightforward by combining two CRON expressions—Azure supports multiple schedules in a single schedule field using commas to separate them.

Step 1: Define Your Time Windows

First, clarify your exact "AM" and "PM" time ranges (I'll use common business hours as an example, but you can adjust these to match your needs):

  • AM: Let's say 8:00 AM to 11:59 AM (local time)
  • PM: 12:00 PM to 5:59 PM (local time)

Step 2: Build the CRON Expressions

Azure uses the CRON format {minute} {hour} {day} {month} {day-of-week}, and a critical note: all times are in UTC by default. So if your local time isn't UTC, you'll need to convert your hour ranges to UTC first.

For the example ranges above (assuming UTC alignment for simplicity):

  • AM every 15 minutes: */15 8-11 * * * (runs at 0,15,30,45 minutes past every hour from 8 to 11 UTC)
  • PM every 30 minutes: */30 12-17 * * * (runs at 0 and 30 minutes past every hour from 12 to 17 UTC)

Step 3: Update Your settings.job File

Combine the two expressions into the schedule field like this:

{
  "schedule": "*/15 8-11 * * *, */30 12-17 * * *"
}

Key Notes to Remember

  • Time Zone Adjustment: If your desired schedule is in a non-UTC time zone, calculate the UTC offset and adjust the hour values. For example, if you're using Beijing Time (UTC+8), 8 AM Beijing is 0 UTC—so your AM range would be */15 0-3 * * * instead.
  • Customize Ranges: Tweak the hour values (e.g., 9-12 for 9 AM to 12 PM) or minute intervals if your actual schedule differs.
  • Verify Deployment: After deploying the updated settings.job, check the Web Job's Trigger History in the Azure Portal to confirm the runs are firing as expected.

That should do it! Your Web Job will now run every 15 minutes during your AM window and every 30 minutes in the PM window.

内容的提问来源于stack exchange,提问作者Rejeesh

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 06:39:45