title: Google cloud functions using gcsfs - "RuntimeError: This class is not fork-safe"
body: <p>I've been using <code>gcsfs</code> in my Cloud Functions for a while now without issue. Suddenly, it has stopped working for newly deployed functions and is throwing an error:
  <code>RuntimeError: This class is not fork-safe</code> (full traceback attached in photo)</p>
  <p>I'm guessing it's due to one of the dependencies of the <code>gcsfs</code> package. In any case, I've updated <code>gcsfs</code> to current version in the <code>requirements.txt</code> and that has not helped.</p>
  <p>The error can be reproduced by defining a cloud function as follows (Python 3.7):</p>
  <p>main.py:</p>
  <pre><code>import gcsfs
  
  # Read in runners and races for end_date
  fs = gcsfs.GCSFileSystem(project='project-name-1234')
  
  def try_gcsfs(request):
  
      with fs.open(r'any_csv_file_in_cloud_bucket.csv', 'rb') as f:
        lines = []
          for line in f:
              lines.append(line.decode(errors='ignore'))
  
      print('success')
  </code></pre>
  <p>requirements.txt:</p>
  <pre><code>gcsfs==2021.10.0
  </code></pre>
  <p><a href="https://i.stack.imgur.com/75hLJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/75hLJ.png" alt="enter image description here" /></a></p>