mirror of
https://github.com/blw1138/Zordon.git
synced 2025-12-17 16:58:12 +00:00
Save worker information to database for persistence across runs and abstract away data source
This commit is contained in:
@@ -242,6 +242,8 @@ class BaseRenderWorker(object):
|
||||
|
||||
def json(self):
|
||||
worker_data = self.__dict__.copy()
|
||||
worker_data['percent_complete'] = self.percent_complete()
|
||||
worker_data['time_elapsed'] = self.time_elapsed()
|
||||
keys_to_remove = ['thread', 'process'] # remove unwanted keys from dict
|
||||
for key in worker_data.keys():
|
||||
if key.startswith('_'):
|
||||
|
||||
Reference in New Issue
Block a user