As the title says, I have an app hosted on Heroku that seems to have more than one instance running. This is a problem because I am trying to keep track of single letter posts on a GroupMe in order to see if they spell anything. I am using python and a global string variable that I can add the characters to. Since there is more than one instance, there is more than 1 global variable so sometimes the character gets added to one or the other which defeats the purpose of the program. Has anyone else run into this problem or found a fix to this? Thanks.
My Heroku app seems to be running more than 1 instance
237 Views Asked by Philip Moraski At
1
There are 1 best solutions below
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in HEROKU
- How to get Heroku Support to answer an email?
- Duplicate GET requests - Rails & Heroku
- I am struggling to get a 200 success request for my Heroku-hosted API on Rapid API for GET requests. I only receive a '404 page not found' error
- Heroku Deployment Error: Failed to Push Some Refs to Git Repository
- NOT WORKING domain.com/cv WORK domain.com/cv/ www.bluetrendy.com/cv www.bluetrendy.com/cv/ any ideas?
- I'm going nuts with Heroku session management issues
- Images stored on google drive are not loading on a website hosted on heroku
- Deploy Springboot app on heroku which is using google storage services
- How to run mitmproxy in Heroku?
- Celery Task Tracing ValueError: Unpacking Issue in a Flask Web App Migration, python backend
- Unable to push changes via git behind Proxy with Heroku
- Failed docker deployment: Cannot find module '/app/heroku'
- Request timeout error (H12) on Heroku deployment for website scraping and Excel generation
- Stripe doesn't work after deploying on Heroku by Django
- I got CORS error when trying to do a request in my app in Heroku
Related Questions in GROUPME
- How do I properly pass an group ID parameter into the GroupMe API
- GroupMe bot sending videos but not text
- GroupMe API call returning [Object] instead of actual json
- Sequentially combine data from multiple GET requests in node.js
- Name and nickname returned are the same for group members
- Is there any way to send GroupMe's Image or Location attachments from a Bot Framework bot?
- Why would a callback URL not work (for a GroupMe bot)?
- How to avoid GroupMe bot from reading the same message twice when restarted on Heroku?
- Routing an image through GroupMe's image service with Python
- GroupMe bot is not sending images along with it's text
- My Heroku app seems to be running more than 1 instance
- Character Encoding error with Groupme bot using Groupy library
- GroupMe Mention API
- Groupme Oauth remembers last user's creds instead of presenting new login screen on iOS?
- Calling function with passing variable from JSON message request in Groupme Bot
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
So after thinking about possible ways to fix it, I decided to try to keep my global variables inside a json file and then edit that each time. This worked as I believe that even if there were 2 version of the actual code running, they should both edit the same json file.