Example usage with Sinatra Run using the local processing server Install dependencies: bundle install Launch the server: foreman start Open a Sinatra console: ./bin/console Enqueue workers: DummyWorker.perform_async Run using Cloud Tasks Ensure that your Google Cloud SDK is setup. Install dependencies: bundle install Start an ngrok tunnel: ngrok http 3000 Edit the initializer Add the configuration of your GCP queue Set config.processor_host to the ngrok http or https url Set config.mode to :production Launch the server: foreman start web Open a Sinatra console: ./bin/console Setup your queues on Google Cloud Tasks: # Default and critical queues Cloudtasker::CloudTask.setup_production_queue Cloudtasker::CloudTask.setup_production_queue(name: 'critical') Enqueue workers: DummyWorker.perform_async