Skip to content

Ignore tasksets that aren't running#64

Open
jrluis wants to merge 1 commit intocookpad:masterfrom
jrluis:fix_cpu_100percent
Open

Ignore tasksets that aren't running#64
jrluis wants to merge 1 commit intocookpad:masterfrom
jrluis:fix_cpu_100percent

Conversation

@jrluis
Copy link

@jrluis jrluis commented Aug 29, 2016

  • This avoid unnecessary notifications of the master

* This avoid unnecessary notifications of the master
@jrluis jrluis mentioned this pull request Aug 29, 2016
worker_log = WorkerLog.create(@worker, taskset)
logger = TimedLogger.new(worker_log)

break if taskset.status == 'running'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check has done in l.196.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't use check.call because it would return from the work method.
The fix relies on not notifying the master if the worker has tasksets in the queue. After returning from work method a notification to master is sent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants