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

Allow setting queue for each job #58

Merged
merged 1 commit into from
Aug 24, 2018
Merged

Conversation

devilankur18
Copy link
Contributor

@devilankur18 devilankur18 commented Aug 12, 2018

#39 Added queue support as per the latest code.

@devilankur18 devilankur18 changed the title #39 Allow setting queue for each job Allow setting queue for each job Aug 12, 2018
@pokonski
Copy link
Contributor

Hey @devilankur18, thanks for the PR! Before we merge this can you clean up the unrelated changes you copied from here? aeris@c9f9d92

lib/gush/job.rb Outdated
attr_reader :name, :output_payload, :params

def initialize(opts = {})
options = opts.dup
assign_variables(options)
end

def payload(clazz)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this method, it's not related and not needed

lib/gush/job.rb Outdated
@@ -98,6 +105,9 @@ def has_no_dependencies?
end

private
def logger
Copy link
Contributor

Choose a reason for hiding this comment

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

Also not needed

client.enqueue_job(workflow_id, out)
end
out
end
rescue RedisMutex::LockError
Copy link
Contributor

Choose a reason for hiding this comment

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

Unrelated to queuing

@devilankur18
Copy link
Contributor Author

@pokonski updated !!

@pokonski
Copy link
Contributor

Looks good! Can you also fix the one failing spec and I'll merge it :) Thanks!

@devilankur18
Copy link
Contributor Author

@pokonski fixed !!

@pokonski pokonski merged commit 5e14330 into chaps-io:master Aug 24, 2018
@pokonski
Copy link
Contributor

pokonski commented Nov 22, 2018

@devilankur18 this is now released under version 2.0.0. Thanks again and sorry for the delay!

https://github.com/chaps-io/gush/releases/tag/v2.0.0

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