Parallel tasks control and general arguments

40 views
Skip to first unread message

Raimundo Martins

unread,
Mar 1, 2015, 6:57:11 PM3/1/15
to pytho...@googlegroups.com
Hi!

Is it possible to obtain the -n parameter mentioned here, and use it in task creation?
Can I change that parameter, and can I specify that a task cannot be run in parallel with others?
Imagine I have a long running task which can be parallelized itself:
 I'd like all other tasks to stop and run this one passing it the -n parameter

And how can I use arguments in task creation? This would be used to determine not a tasks' metadata but the number of tasks.
For instance, to use the argument as a glob, each resulting file resulting in a task, how would one proceed?
To better specify my case the user would have a parameter to specify the source files root folder which would be globbed and used to generate object compilation tasks.
I realize I can use command line args, I'm just curious if I could emulate a ./configure script input.

Cheers
Reply all
Reply to author
Forward
0 new messages