Skip to content

Commit 090a993

Browse files
committed
fix(signals): config limits handle error
1 parent 47d5a05 commit 090a993

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

rootfs/api/signals.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,7 @@ def appsettings_changed_handle(
228228
def config_changed_handle(sender, instance: Config, created=False, update_fields=None, **kwargs):
229229
# measure limits to workflow manager
230230
if settings.WORKFLOW_MANAGER_URL and (
231-
created or (
232-
update_fields is not None and (
233-
"cpu" in update_fields or "memory" in update_fields))):
231+
created or (update_fields is not None and "limits" in update_fields)):
234232
timestamp = time.time()
235233
send_measurements.apply_async(
236234
args=[instance.app.to_measurements(timestamp), ],

0 commit comments

Comments
 (0)