Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6158807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:01:25+00:00 2026-05-23T21:01:25+00:00

So, I’m trying to use deployment descriptors in TorqueBox, by having a file (in

  • 0

So, I’m trying to use deployment descriptors in TorqueBox, by having a file (in my rails app) under config called torquebox.yml

The file itself contains:

---
application:
  root: /usr/local/labs/live_management
  env: development

tasks:
  Backgroundable:
      concurrency: 9

Which as far as I can tell is correct.

However, I don’t know what this file is supposed to do… When I do rake torquebox:deploy it LOOKS like it still writes the default app_name-knob.yml file to the torquebox directory, which does NOT have my concurrency descriptors in it, and the documentation says that the external file has precedence.

Under that it appears that I can only have ONE background task at a time.

So I tried copying my torquebox.yml file to the Torquebox application directory, renaming it to be the app_name-knob.yml file.

This SEEMS to help, because now I have TWO background tasks at a time (even though I specified 9).

What am I doing wrong? Is my file incorrect, some how? Can Torquebox only have 2 background tasks?

What is the right way to use torquebox.yml as an internal descriptor?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T21:01:26+00:00Added an answer on May 23, 2026 at 9:01 pm

    You’re almost there. The issue is due to the way TorqueBox sets up its runtime pools of Ruby interpreters. In the development environment, which you’ve specified in your internal descriptor, the default messaging runtime pool has a maximum of 2, so regardless of your concurrency setting, the maximum number of simultaneous tasks you’ll ever see backgrounded is 2.

    In the production environment, the default pool is shared, meaning the same runtime is shared by however many threads try to use it, in your case, a maximum of 9. So either set your env variable to production, or add a pools element to your descriptor to force it shared. For example,

    ---
    application:
      root: /usr/local/labs/live_management
      env: development
    
    tasks:
      Backgroundable:
          concurrency: 9
    
    pooling:
      messaging: shared
    

    BTW, values from your external and internal descriptors are merged, with the external one taking precedence for any keys in common between the two. So you were doing that correctly.

    For more info, http://torquebox.org/documentation/1.0.1/pooling.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're building an app, our first using Rails 3, and we're having to build
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to render a haml file in a javascript response like so:
I want use html5's new tag to play a wav file (currently only supported
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
Basically, what I'm trying to create is a page of div tags, each has
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
In my XML file chapters tag has more chapter tag.i need to display chapters

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.