MCPcopy Index your code
hub / github.com/plotly/dash / _set_progress

Function _set_progress

dash/background_callback/managers/celery_manager.py:148–152  ·  view source on GitHub ↗
(progress_value)

Source from the content-addressed store, hash-verified

146 result_key, progress_key, user_callback_args, context=None
147 ): # pylint: disable=too-many-statements
148 def _set_progress(progress_value):
149 if not isinstance(progress_value, (list, tuple)):
150 progress_value = [progress_value]
151
152 cache.set(progress_key, json.dumps(progress_value, cls=PlotlyJSONEncoder))
153
154 maybe_progress = [_set_progress] if progress else []
155

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…