简体   繁体   English

BigQuery 仅在工作日安排的查询

[英]BigQuery Scheduled queries only on working days

I need a scheduled query only between Monday to Friday between 9 and 7 o'clock:我只需要在周一到周五 9 点到 7 点之间的预定查询:

Scheduled queries is currently: every hour from 9:00 to 19:00预定查询目前是:每小时 9:00 到 19:00

But how to modify for Mo-Fr?但是如何修改 Mo-Fr?

  • every monday to friday from 9:00 to 19:00 not working每周一到周五 9:00 到 19:00 不上班
  • every monday from 9:00 to 19:00 working (so day of the week is in general not working?)每个星期一从 9:00 到 19:00 工作(所以一周中的某一天通常不工作?)

Thanks谢谢

Please review the following from the official documentation: Set up scheduled queries .请查看官方文档中的以下内容: 设置预定查询

Specifically,具体来说,

To specify a custom frequency, select Custom, then enter a Cron-like time specification in the Custom schedule field;要指定自定义频率,select Custom,然后在 Custom schedule 字段中输入类似 Cron 的时间规范; for example every 3 hours.例如每 3 小时一次。

Then, you can use a tool like crontab guru to produce the cron statement for the schedule you want.然后,您可以使用 crontab guru 之类的工具为您想要的计划生成 cron 语句。 Example: 00 9-19 * * 1-5示例: 00 9-19 * * 1-5

thanks for the Feedback.感谢您的反馈。 So like this one?所以喜欢这个? But this is not working但这不起作用

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 bigquery 上运行 dbt 与预定查询 - Running dbt vs scheduled queries on bigquery 如何在 bigquery 中获取计划查询的名称 - How to get names of scheduled queries in bigquery 如何在 BigQuery 计划查询错误消息中动态包含值? - How to include values dynamically in BigQuery Scheduled Queries Error Message? 在 BigQuery Google Cloud 中获取我所有计划的 SQL 查询 - Get all my scheduled SQL queries in BigQuery Google Cloud 如何以编程方式获取 bigquery 的计划查询执行日志? - How to get bigquery's scheduled queries execution log programmatically? 如何在视图或计划查询之间进行选择,以对通过 Stitch 导入的 BigQuery 表进行重复数据删除? - How to choose between Views or Scheduled Queries for de-duplicating BigQuery tables imported via Stitch? BigQuery 计划查询 - 创建表并在不同项目中为其名称添加日期后缀 - BigQuery scheduled queries - Create table and add date suffix to its name in a different project 解决 BigQuery“启用计划查询 API 时发生错误”所需的权限。 问题 - What permissions required to solve BigQuery "An error occurred while enabling the Scheduled Queries API." problem BigQuery 是否对 LIMIT 0 次查询收费? - Are LIMIT 0 queries billed in BigQuery? 使用 bigquery 的嵌套查询 - Nested queries WITH bigquery
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM