Skip to content

Commit

Permalink
Handle Gigahorse users manually disabling farming when plotting.
Browse files Browse the repository at this point in the history
  • Loading branch information
guydavis committed Nov 6, 2023
1 parent 82a8962 commit cda55da
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions api/schedules/status_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,13 @@ def gather_services_status():
# Assumes a single blockchain is enabled in this container
blockchain = globals.enabled_blockchains()[0]
if gc['farming_enabled'] or gc['harvesting_enabled']:
if blockchain == 'mmx':
farming_status = mmx_cli.load_farm_info(blockchain).status
else:
farming_status = chia_cli.load_farm_summary(blockchain).status
try: # Deal with Gigahorse users plotting with farming manually disabled due to GPU contention
if blockchain == 'mmx':
farming_status = mmx_cli.load_farm_info(blockchain).status
else:
farming_status = chia_cli.load_farm_summary(blockchain).status
except Exception as ex:
app.logger.error("Skipping farm status for worker due to: {0}".format(str(ex)))
if chiadog_cli.get_chiadog_pid(blockchain):
monitoring_status = "running"
else:
Expand Down

0 comments on commit cda55da

Please sign in to comment.