Feature #4617

Move threading control to the commands that use threads, add --threads option

Added by Stavros Sachtouris over 10 years ago. Updated over 10 years ago.

Status:Resolved Start date:11/19/2013
Priority:Medium Due date:11/20/2013
Assignee:Stavros Sachtouris % Done:

100%

Category:kamaki Spent time: 2.00 hours
Target version:v0.12 Estimated time:2.00 hours

Description

There are currenlty 3 out of ~80 commands that use threads:

server create (when run with clusters)
file upload
file download

Move thread control to the command code (kamaki/cli/commands) and add a --threads option to control it.
Default thread number is also set by each individual command, since each command has different needs


Related issues

related to ./kamaki - Bug #4616: Thread limit is broken Closed 11/19/2013 11/22/2013

Associated revisions

Revision ec5d658f
Added by Stavros Sachtouris over 10 years ago

Move thread control to threaded commands

Refs: #4616, #4617

Remove max_theads from config, move control to threaded commands as --threads
Set default MAX_THREADS to 1

History

#1 Updated by Vangelis Koukis over 10 years ago

  • Status changed from New to Assigned

Please ensure the default for threading is always 1.
The user should enable multithreading explicitly, should the need arise.
Also, please ensure Ctrl-C works instantly in all cases, whether or not --threads is used.

#2 Updated by Stavros Sachtouris over 10 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF