Skip to content

Commit

Permalink
Set Tasks Limit to 1L (#574)
Browse files Browse the repository at this point in the history
* Set Tasks Limit to 1L

* set timeout to 15mins
  • Loading branch information
ruuushhh authored Mar 4, 2024
1 parent 5d717e8 commit 32ebde9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions fyle_qbo_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@

Q_CLUSTER = {
'name': 'fyle_quickbooks_api',
'save_limit': 0,
# The number of tasks will be stored in django q tasks
"save_limit": 100000,
'workers': 4,
# How many tasks are kept in memory by a single cluster.
# Helps balance the workload and the memory overhead of each individual cluster
Expand All @@ -110,7 +111,8 @@
'ack_failures': True,
'poll': 1,
'retry': 14400,
'timeout': 3600,
# 15 mins
'timeout': 900,
'catch_up': False,
# The number of tasks a worker will process before recycling.
# Useful to release memory resources on a regular basis.
Expand All @@ -121,7 +123,8 @@
'ALT_CLUSTERS': {
'import': {
'retry': 14400,
'timeout': 3600
# 15 mins
'timeout': 900,
},
}
}
Expand Down

0 comments on commit 32ebde9

Please sign in to comment.