Coder Social home page Coder Social logo

Comments (5)

jeffpeiyt avatar jeffpeiyt commented on September 26, 2024

hi @agustintorres , thanks for trying out REST Commander.

Current implementation does not support async job calling. You will have to wait for the response to come back. We decided to implement the async job with progress tracking in Parallec.io with many other improvements and flexibility: check example

The maxConcurrency should work for the commands. the first 0 after the /act/index.rss is the concurrency (default as 1500) , could you please try this and modified the 1st 0 and see if it works? http://www.restcommander.com/documentation.html#Commands

thanks,

GET_CRAIGSLIST_RSS GET http 80 /act/index.rss 0 0 5000 SUPERMAN_GLOBAL
```$AM_FULL_CONTENT 

from restcommander.

agustintorres avatar agustintorres commented on September 26, 2024

@jeffpeiyt Thanks for the prompt reply. I actually do not want async job calling. I'm happy waiting for the response as long as it's needed. My question was why for the second curl request, I get "(52) Empty reply from server". Do you think this is most likely an issue on my end, and restcommander itself should return a response once it's done, even if it takes 10 minutes?

In addition, I'm not sure why the response that does work (for the first curl command) contains only a JSON with "result" and "time" rather than the full JSON response object with the actual responses from the server (i.e. similar to the full responses displayed at http://www.restcommander.com/usecase.html). Any idea why?

For maxConcurrency, this is my command:

GET_NETWORTH GET http 80 /networth/$UID 4 -1 -1 SUPERMAN_GLOBAL


As you can see, the maxConcurrency is set to 4 and this is fine in the Commands display:

![screen shot 2016-09-20 at 2 50 14 pm](https://cloud.githubusercontent.com/assets/11450276/18684287/9fd1a8c4-7f41-11e6-8f3f-a62b020ee28a.png)

However, when I look at the task for that command in the Dashboard, maxConcurrency display as 500 (see below). I have no idea where that 500 could be coming from.

![screen shot 2016-09-20 at 2 52 08 pm](https://cloud.githubusercontent.com/assets/11450276/18684354/df184fec-7f41-11e6-9f81-bd3ec5deffbd.png)

from restcommander.

jeffpeiyt avatar jeffpeiyt commented on September 26, 2024

hi @agustintorres , I just realize that probably you did not use the master branch (master branch did not have the dashboard and many features in distributed manner); but use the distributed version branch: as the default concurrency is set at 500: check here The distributed version has more complexity in setting the concurrency when dispatch jobs to slave nodes etc.

Could you please try the master branch, it has less feature but I just tested the concurrency changes is working in display.

The distributed version was not completly tested in production and we suggest you use the master branch version for reliability.

from restcommander.

agustintorres avatar agustintorres commented on September 26, 2024

@jeffpeiyt: Thanks for the insight. I gave Parallec a try and decided it fits my use case better, so I will be using it for now. Feel free to close this issue.

from restcommander.

jeffpeiyt avatar jeffpeiyt commented on September 26, 2024

Thank you @agustintorres ! Please feel free to raise issues in parallec if you have more questions.

from restcommander.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.