Skip to content

Commit 9777594

Browse files
allcenturyrosa
authored andcommitted
Fix config.yml Indentation
Prior to this change, if all #'s are removed from the config template you're left with a yaml file that solid_queue can't parse. ``` bundle exec rake solid_queue:start rake aborted! YAML syntax error occurred while parsing /Users/anthonyross/projects/mint/config/solid_queue.yml. Please note that YAML must be consistently indented using spaces. Tabs are not allowed. Error: (<unknown>): did not find expected key while parsing a block mapping at line 1 column 1 ``` reproducable in this repo via (remove comments first). After fix: ``` ActiveSupport::ConfigurationFile.parse("./lib/generators/solid_queue/install/templates/config.yml")["development"] => {"batch_size"=>10, "dispatchers"=>[{"polling_interval"=>1, "batch_size"=>500}], "workers"=>[{"queues"=>"*", "threads"=>5, "processes"=>1, "polling_interval"=>0.1}]} ```
1 parent a021975 commit 9777594

File tree

1 file changed

+1
-1
lines changed
  • lib/generators/solid_queue/install/templates

1 file changed

+1
-1
lines changed

lib/generators/solid_queue/install/templates/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#default: &default
1+
# default: &default
22
# dispatchers:
33
# - polling_interval: 1
44
# batch_size: 500

0 commit comments

Comments
 (0)