# Dcc Interval not updating regularly

**URL:** <https://community.plotly.com/t/dcc-interval-not-updating-regularly/50332>\
**Category:** Dash Python\
**Created:** [February 23, 2021, 6:54am UTC](https://community.plotly.com/t/dcc-interval-not-updating-regularly/50332 "2021-02-23T06:54:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nero](https://avatars.discourse-cdn.com/v4/letter/n/9d8465/32.png) [@nero](https://community.plotly.com/u/nero)\
**Post date:** [February 23, 2021, 6:54am UTC](https://community.plotly.com/t/dcc-interval-not-updating-regularly/50332/1 "2021-02-23T06:54:40Z")

</div>

Hi all,  
I’m using dcc.interval to update a table on a regular basis. I noticed that if other callbacks are fired in the application, even if not in parallel to the one from dcc.Interval, it interrupts the callbacks update of dcc.Interval for a while. Example below fires every 30s, but if I run another callback on a different component of the application, the next interval update can take place in 10mn (or even more).  
I’m pasting the code in case I’m missing something.

> table =dash\_table.DataTable(  
> id=‘monitoring-inception-pl’,  
> columns=columns,  
> style\_data\_conditional=style\_data\_conditional,  
> sort\_action=‘native’,  
> style\_cell={‘textAlign’: ‘left’},  
> export\_format=‘xlsx’,  
> export\_headers=‘display’,  
> merge\_duplicate\_headers=True,  
> )  
> return html.Div([  
> dcc.Interval(  
> id=‘interval-update’,  
> interval= 30 \* 1000, # in milliseconds  
> n\_intervals=0  
> ),  
> drc.Card([  
> html.P(  
> children=‘Daily Negative Client Flow’,  
> style={‘textAlign’: ‘center’, ‘width’: ‘105%’, ‘color’: ‘red’, ‘font-weight’: ‘bold’}  
> ),  
> html.Div(  
> id=‘inception-last-ts-id’,  
> style={‘width’: ‘98%’, ‘margin’: 5, ‘textAlign’: ‘left’}  
> ),  
> table,  
> ], style={“min-height”: “auto!important”, “z-index”: “inherit !important”, “overflow”: “visible !important”})

this is the callback

> @app.callback(  
> [Output(‘monitoring-inception-pl’, ‘data’), Output(‘inception-last-ts-id’, ‘children’)],  
> [Input(‘interval-update’, ‘n\_intervals’)]  
> )  
> def updateNegativeInception(interval):  
> logging.info(“Inception negative P&L monitoring " + str(interval))  
> asOf = datetime.now().strftime(”%Y-%m-%d %H:%M:%S")

> ```
> df = computeDF('tot', asOf, asOf)
> 
> lsr = [html.Tr(),html.P('Last run: ' + asOf, style={'color': 'black', 'font-weight': 'bold'})]
> 
> return [df.to_dict('records'), lsr]
> 
> ```
