Skip to content

Commit

Permalink
Made MAX_TASK_RESULTS environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jhazentia committed Jul 8, 2019
1 parent 1d8b3ac commit f00b0da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ services:
- MOCK_RADIO
- MOCK_RADIO_RANDOM
- CALLBACK_SSL_VERIFICATION
- MAX_TASK_RESULTS
expose:
- '8000'
volumes:
Expand Down
2 changes: 1 addition & 1 deletion src/sensor/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
DATABASES["default"]["HOST"] = "localhost"

# Ensure only the last MAX_TASK_RESULTS results are kept per schedule entry
MAX_TASK_RESULTS = 100000
MAX_TASK_RESULTS = env.int("MAX_TASK_RESULTS", default=100000)
# Display at most MAX_TASK_QUEUE upcoming tasks in /tasks/upcoming
MAX_TASK_QUEUE = 50

Expand Down

0 comments on commit f00b0da

Please sign in to comment.