Skip to content

Instantly share code, notes, and snippets.

@weex
Created November 16, 2021 22:25
Show Gist options
  • Save weex/dada43020bafbc8ef27872fbb26f50be to your computer and use it in GitHub Desktop.
Save weex/dada43020bafbc8ef27872fbb26f50be to your computer and use it in GitHub Desktop.
minor proposed update
diff --git a/run.py b/run.py
index 140f944..abb13ac 100644
--- a/run.py
+++ b/run.py
@@ -412,6 +412,7 @@ async def jobs_dispatcher():
job.state = "running"
job.started_time = datetime.now()
+ job.end_time = None
job.save()
worker.state = "busy"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment