iron_worker_ruby_ng icon indicating copy to clipboard operation
iron_worker_ruby_ng copied to clipboard

added bulk create method for posting 1+ N tasks in single api call

Open Stephenitis opened this issue 10 years ago • 5 comments

The api allows for bulk posting of tasks but the ruby but the tasks.create method was not changeable to fit this behavior without possibly breaking code where previous users would have an array as their payload rather than an array of payloads.

p client.tasks.bulk_create('hello_ruby', Array.new(100) {|i| {:hello => "world"} }, {:cluster => "mem1"} )

Stephenitis avatar Jan 30 '15 23:01 Stephenitis

:+1:

ysadka avatar Jan 31 '15 00:01 ysadka

@sunloverz can you review implementation?

Stephenitis avatar Jan 31 '15 00:01 Stephenitis

@Stephenitis any updates here?

sunloverz avatar Feb 10 '15 10:02 sunloverz

@Stephenitis ping. wanna get this merged?

ysadka avatar Mar 23 '15 20:03 ysadka

Can you guys get this into iron_worker_ruby too (nearly the same code, was copied over). https://github.com/iron-io/iron_worker_ruby

NG will probably be deprecated soon.

treeder avatar Mar 23 '15 20:03 treeder