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

Make gh_repo_info_worker compatible with broker #323

Merged
merged 1 commit into from
Jul 11, 2019

Conversation

parthsharma2
Copy link
Member

@parthsharma2 parthsharma2 commented Jul 11, 2019

In this version of the gh_repo_info_worker the worker connects to the broker and can receive tasks.

You can run the worker using the command python -m gh_repo_info_worker.runtime while in the workers/gh_repo_info_worker directory.

To send a task to this worker send a POST request to the endpoint /task with the following json data:

  "job_type": "UPDATE",
  "models": [
    "repo_info"
  ],
  "given": {
    "git_url": "https://github.com/rails/rails-dom-testing.git"
  }
}

The git_url field specifies the git repository you want to run the worker on.

Signed-off-by: Parth Sharma [email protected]

@gabe-heim gabe-heim merged commit 55235df into chaoss:dev Jul 11, 2019
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