atul-astronomer opened a new issue, #63436:
URL: https://github.com/apache/airflow/issues/63436
### Apache Airflow version
3.1.8
### If "Other Airflow 3 version" selected, which one?
_No response_
### What happened?
Scheduler has error `[error ] dag_model.next_dagrun is None; expected
datetime [airflow.jobs.scheduler_job_runner.SchedulerJobRunner]
dag_id=aip76_tc007_raw_producer loc=scheduler_job_runner.py:2043`
### What you think should happen instead?
_No response_
### How to reproduce
Use below Dag:
```python
from __future__ import annotations
from airflow import DAG
from airflow.sdk import (
Asset,
CronPartitionTimetable,
PartitionedAssetTimetable,
IdentityMapper,
)
from airflow.decorators import task
from airflow.sdk import get_current_context
from datetime import datetime
raw_data = Asset(uri="file://aip76/tc007_raw_data.csv")
processed_data = Asset(uri="file://aip76/tc007_processed_data.csv")
with DAG(
dag_id="aip76_tc007_raw_producer",
start_date=datetime(2026, 1, 1),
schedule=CronPartitionTimetable("0 * * * *", timezone="UTC"),
catchup=False,
tags=["aip76", "tc007"],
) as producer_dag:
@task(outlets=[raw_data])
def produce_raw():
context = get_current_context()
partition_key = context["dag_run"].partition_key
print("Producer partition:", partition_key)
produce_raw()
```
### Operating System
Linux
### Versions of Apache Airflow Providers
_No response_
### Deployment
Other
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]