我每天凌晨 12 点后 3 分钟触发@daily_schedule
由“2021-02-16 00:03:00”的预定刻度触发时
日期输入显示' 2021-02-15 00:00:00',分区标记为'2021-02-15'
而如果通过分区“2021-02-16”的回填触发
日期输入显示' 2021-02-16 00:00:00',分区标记为'2021-02-16'
为什么预定的刻度会在前一天填充分区?是否可以选择使用执行的日期时间(不使用 cron @schedule)?当我使用确切日期的时间戳执行查询时,这种差异令人困惑
PS我已经测试了预定运行和回填运行以具有相同的时区。
@solid()
def test_solid(_, date):
_.log.info(f"Input date: {date}")
@pipeline()
def test_pipeline():
test_solid()
@daily_schedule(
pipeline_name="test_pipeline",
execution_timezone="Asia/Singapore",
start_date=START_DATE,
end_date=END_DATE,
execution_time=time(00, 03),
# should_execute=four_hourly_fitler
)
def test_schedule_daily(date):
timestamp = date.strftime("%Y-%m-%d %X")
return {
"solids": {
"test_solid":{
"inputs": {
"date":{
"value": timestamp
}
}
}
}
}