098d09dc120c86db54ed64150155338513f460b6,wandb/agents/pyagent.py,Agent,_run_jobs_from_queue,#Agent#,178

Before Change


                        )
                        self._exit_flag = True
                        return
                del self._run_threads[job.run_id]
                if self._count and self._count == count:
                    logger.debug("Exiting main loop because max count reached.")
                    self._exit_flag = True
                    return

After Change


                        waiting = False
                    count += 1
                    run_id = job.run_id
                    if self._run_status[run_id] == RunStatus.STOPPED:
                        continue
                    logger.debug("Spawning new thread for run {}.".format(run_id))
                    thread = threading.Thread(target=self._run_job, args=(job,))
                    self._run_threads[run_id] = thread
                    thread.start()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: wandb/client
Commit Name: 098d09dc120c86db54ed64150155338513f460b6
Time: 2020-10-30
Author: farizrahman4u@gmail.com
File Name: wandb/agents/pyagent.py
Class Name: Agent
Method Name: _run_jobs_from_queue


Project Name: merenlab/anvio
Commit Name: 04bd843050842490a291ce610079a268f043a287
Time: 2019-12-12
Author: alon.shaiber@gmail.com
File Name: anvio/migrations/config/v0_to_v1.py
Class Name:
Method Name: migrate


Project Name: pfnet/optuna
Commit Name: 43475d870734b13655643492895fd1a3ff102e47
Time: 2019-07-25
Author: phjgt308@gmail.com
File Name: optuna/storages/rdb/storage.py
Class Name: RDBStorage
Method Name: create_new_trial_id