Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to specify a definite node where the job running on ? #1

Open
junneyang opened this issue Nov 10, 2014 · 2 comments
Open

how to specify a definite node where the job running on ? #1

junneyang opened this issue Nov 10, 2014 · 2 comments

Comments

@junneyang
Copy link

how to specify a definite node where the job running on ?

very thanks

@zaro0508
Copy link
Owner

You can use the Jenkins node and job labels to direct a job to a specific node. The gearman plugin will register gearman functions according to the label for each job and node.

Lets assume you have a slave (labeled 'myNode') and a myJob (set to run on 'myNode') then you can do something like this..

python gear_client.py -s MyGearmanServer --function=build:myJob:myNode --params=...

@junneyang
Copy link
Author

very thanks,but the new question comes again.
my expect is that a job registered in gearman not only could run on many node(a node pool shares this job),but also we can specify which node it runs on.
if we use build:job to submit the task,it runs on one of the node pool
if we use build:job:node to submit the task,it runs on the specify node.

i am looking forward to your help very much,thank you!

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

No branches or pull requests

2 participants