Groups not running at the same time

93 views
Skip to first unread message

odell_w...@hotmail.com

unread,
Oct 21, 2013, 12:05:44 PM10/21/13
to multi-m...@googlegroups.com
Ween running the example, the groups run 1 after the other. Should they not be running at the same time? In the csv file it show that group 1 runs the first 59 transactions ad group 2 ran the last 3 transactions. How do I get them to run at the same time?

I have the latest build of multimech and python 2.7 running on window 7.

Thanks for any insight.


Corey Goldberg

unread,
Oct 21, 2013, 1:34:20 PM10/21/13
to multi-mechanize
they *should* run in parallel.
> --
> You received this message because you are subscribed to the Google Groups
> "multi-mechanize" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to multi-mechani...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

odell_w...@hotmail.com

unread,
Oct 28, 2013, 11:22:26 AM10/28/13
to multi-m...@googlegroups.com

The scripts are not running in parallel, group 1 runs and then stops running and then group 2 starts running. Using the example scripts from building a new project I added a print statement with the script name:

    def run(self):
        r = random.uniform(1, 2)
        time.sleep(r)
        print "script 1"
        self.custom_timers['Example_Timer'] = r

then did the same but changed print "script 1" to print "script 2" and saved this as v_user2.py. in the config I have 2 groups:

[global]
run_time = 30
rampup = 0
results_ts_interval = 10
progress_bar = on
console_logging = off
xml_report = off


[user_group-1]
threads = 3
script = v_user.py

[user_group-2]
threads = 3
script = v_user2.py

the output when I run the scripts as follows:
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 1
script 2
script 2
script 2

  user_groups:  2
  threads: 6
A you can see Script is only ran 3 times and that is after script 1 stops. This is running on Windows 7 and can not figure out why they will not run in parallel.


On Monday, October 21, 2013 11:05:44 AM UTC-5, odell_w...@hotmail.com wrote:
When running the example, the groups run 1 after the other. Should they not be running at the same time? In the csv file it show that group 1 runs the first 59 transactions ad group 2 ran the last 3 transactions. How do I get them to run at the same time?

odell_w...@hotmail.com

unread,
Dec 6, 2013, 1:26:30 PM12/6/13
to multi-m...@googlegroups.com
No feed back on why I can not run more than one group at a time.

On Monday, October 21, 2013 11:05:44 AM UTC-5, odell_w...@hotmail.com wrote:

odell_w...@hotmail.com

unread,
Dec 6, 2013, 4:47:27 PM12/6/13
to multi-m...@googlegroups.com
Ok so after looking through the code and adding debug statements it is getting to  here
       for agent_thread in threads:
            agent_thread.join()
For the first group and then waits for the run_time to finish then it runs the other groups and then immediate stops. Should it be waiting for the join to finish or should it go to the next group.


On Monday, October 21, 2013 11:05:44 AM UTC-5, odell_w...@hotmail.com wrote:

Moises Siles

unread,
Jul 3, 2014, 5:32:15 PM7/3/14
to multi-m...@googlegroups.com
Did you find a solution for this?
Reply all
Reply to author
Forward
0 new messages