abraham-ai / eden

Eden converts your python function into a hosted endpoint with minimal changes to your existing code :mage_man:
GNU General Public License v3.0
47 stars 5 forks source link

null progress #11

Closed genekogan closed 2 years ago

genekogan commented 3 years ago

when fetching status update, in the beginning before any iterations have run, fetch returns { status: 'running', progress: null }.

progress should not be null, it should either be 0, or perhaps more accurately, status should be reported as queued.

Mayukhdeb commented 2 years ago

Update:

if the user sets progress = True in a block, and then while running the block, if the progress has not been updated at least once, progress returns '__none__' by default. The progress starts holding a float value only after the user calls config.progress.update(1/num__iters) at least once

@genekogan should I just set the initial default value to be 0. instead of '__none__' ?