# Airflow running great expectations in DEV and PROD env

**URL:** <https://discourse.greatexpectations.io/t/airflow-running-great-expectations-in-dev-and-prod-env/1339>\
**Category:** GX Core Support\
**Tags:** airflow\
**Created:** [August 22, 2023, 11:32am UTC](https://discourse.greatexpectations.io/t/airflow-running-great-expectations-in-dev-and-prod-env/1339 "2023-08-22T11:32:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lionel](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@lionel](https://discourse.greatexpectations.io/u/lionel)\
**Post date:** [August 22, 2023, 11:32am UTC](https://discourse.greatexpectations.io/t/airflow-running-great-expectations-in-dev-and-prod-env/1339/1 "2023-08-22T11:32:17Z")

</div>

````auto
Checkpoint Run Result
``` in DEV are faster when compared to PROD.
it takes around 10-20 seconds in DEV while PROD takes more than 5 minutes. Which makes my process slow which is not what we want in our process of data loading.
I cross checked the environments of prod and dev all the resources are same.
any feedback what to check in both environments.
which can cause this possible delay. 
the data in both environments are same, the expectations are same , the versions in both the environments are same.
````

---

<div class="post-metadata">

**Author:** ![HaebichanGX](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.greatexpectations.io/haebichangx/32/211_2.png) [@HaebichanGX](https://discourse.greatexpectations.io/u/HaebichanGX)\
**Post date:** [August 23, 2023, 12:40pm UTC](https://discourse.greatexpectations.io/t/airflow-running-great-expectations-in-dev-and-prod-env/1339/2 "2023-08-23T12:40:15Z")

</div>

Hi @lionel I just tested airflow + GX integration locally and in production, and I’m getting similar time results, not drastic changes that you’re observing. I can’t speak to GX-specific reasons why this might be occurring but there are some other, external reasons why this might be happening.

1. Resource Availability: Production environments often have more complex setups and shared resources. Other applications and services may be running concurrently on the same infrastructure, leading to competition for resources like CPU, memory, and network bandwidth.
2. Scale: In production, workflows may handle larger datasets or higher volumes of data, which can naturally lead to longer processing times.
3. Infrastructure: Differences in infrastructure between local and production environments can contribute to variations in execution time. For instance, production environments might have distributed systems, load balancers, and more complex network configurations that can introduce latency.
4. Dependencies: Production workflows might have dependencies on external services, APIs, databases, etc. Delays in accessing these dependencies can impact the overall execution time.

---

<div class="post-metadata">

**Author:** ![lionel](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@lionel](https://discourse.greatexpectations.io/u/lionel)\
**Post date:** [August 24, 2023, 10:52am UTC](https://discourse.greatexpectations.io/t/airflow-running-great-expectations-in-dev-and-prod-env/1339/3 "2023-08-24T10:52:21Z")

</div>

i tried to deploy a simple pandas dataframe  
GreatExpectationsOperator(  
task\_id=“gx\_validate\_pg”,  
data\_context\_root\_dir=ge\_root\_dir,  
data\_asset\_name=“strawberries”,  
dataframe\_to\_validate=pd.DataFrame(  
{  
“id”: [“001”, “002”, “003”, “004”, “005”],  
“name”: [  
“Strawberry Order 1”,  
“Strawberry Order 2”,  
“Strawberry Order 3”,  
“Strawberry Order 4”,  
“Strawberry Order 5”,  
],  
“amount”: [10, 5, 8, 3, 12],  
}  
),  
execution\_engine=“PandasExecutionEngine”,  
expectation\_suite\_name=“strawberry\_suite”,  
return\_json\_dict=True,  
)  
still the same result it took 12 mins to run on prod checkpoint runresult is start of delay
