Skip to content

Commit

Permalink
fix: also make log files unique for multiple processes in the same dyno
Browse files Browse the repository at this point in the history
  • Loading branch information
rix0rrr committed May 15, 2021
1 parent a69aa3d commit 58df9b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
's3-query-logs': {
'bucket': 'hedy-query-logs',
'prefix': app_name + '/',
# Make logs from different instances unique
'postfix': '.' + dyno if dyno else '',
# Make logs from different instances/processes unique
'postfix': ('-' + dyno if dyno else '') + '-' + str(os.getpid()),
'region': 'eu-central-1'
},
}

0 comments on commit 58df9b7

Please sign in to comment.