Skip to content

Commit

Permalink
Merge pull request #1921 from nicomiguelino/fix-1920
Browse files Browse the repository at this point in the history
Fixes shutdown and reboot not working after a while
  • Loading branch information
nicomiguelino authored Jun 9, 2024
2 parents 918496d + d9599c0 commit 92e9b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def setup_periodic_tasks(sender, **kwargs):
sender.add_periodic_task(60*5, get_display_power.s(), name='display_power')


@celery.task
@celery.task(time_limit=30)
def get_display_power():
r.set('display_power', diagnostics.get_display_power())
r.expire('display_power', 3600)
Expand Down

0 comments on commit 92e9b02

Please sign in to comment.