add option to deactivate "processing" feedback (on by default)

This commit is contained in:
Believethehype 2024-01-22 19:01:39 +01:00
parent d35598453f
commit 814af84171
2 changed files with 4 additions and 2 deletions

View File

@ -135,8 +135,9 @@ class DVM:
"[" + self.dvm_config.NIP89.NAME + "] Free task or Whitelisted for task " + task +
". Starting processing..")
send_job_status_reaction(nip90_event, "processing", True, 0,
client=self.client, dvm_config=self.dvm_config)
if dvm_config.SEND_FEEDBACK_EVENTS:
send_job_status_reaction(nip90_event, "processing", True, 0,
client=self.client, dvm_config=self.dvm_config)
# when we reimburse users on error make sure to not send anything if it was free
if user.iswhitelisted or task_is_free:

View File

@ -32,6 +32,7 @@ class DVMConfig:
DB: str
NEW_USER_BALANCE: int = 0 # Free credits for new users
NIP89: NIP89Config
SEND_FEEDBACK_EVENTS = True
SHOW_RESULT_BEFORE_PAYMENT: bool = False # if this is true show results even when not paid right after autoprocess