Download spec/support/d4_solid_queue_probe_worker.rb from denise-oneill-inbox-ru/Rails-8-API-Image-Processing: direct link, hf CLI and curl.
- Browser
- Download file 703 Bytes
-
https://huggingface.co/spaces/denise-oneill-inbox-ru/Rails-8-API-Image-Processing/resolve/main/spec/support/d4_solid_queue_probe_worker.rb
- Command line
-
hf download hf://spaces/denise-oneill-inbox-ru/Rails-8-API-Image-Processing/spec/support/d4_solid_queue_probe_worker.rb
-
curl -L -o d4_solid_queue_probe_worker.rb https://huggingface.co/spaces/denise-oneill-inbox-ru/Rails-8-API-Image-Processing/resolve/main/spec/support/d4_solid_queue_probe_worker.rb
703 Bytes
| # frozen_string_literal: true | |
| # Test-only Solid Queue worker bootstrap used to prove ACTUAL job execution | |
| # through a real Solid Queue worker path (D4-I7). It loads the application | |
| # environment, registers the test-only probe job class, and starts the | |
| # repository's installed Solid Queue CLI/supervisor. Never used by production. | |
| # | |
| # The start block is guarded by the $PROGRAM_NAME check so that Rails-gem and | |
| # RSpec autoloaders (which glob spec/support/**/*.rb) can require this file | |
| # without launching a worker. | |
| require File.expand_path("config/environment", Dir.pwd) | |
| require_relative "d4_solid_queue_probe_job" | |
| require "solid_queue/cli" | |
| SolidQueue::Cli.start(ARGV) if $PROGRAM_NAME == __FILE__ | |