Skip to content

Instantly share code, notes, and snippets.

@mdkrog
Created February 19, 2016 11:48
Show Gist options
  • Save mdkrog/1de4bc12514e056a12ca to your computer and use it in GitHub Desktop.
Save mdkrog/1de4bc12514e056a12ca to your computer and use it in GitHub Desktop.
t = Delayed::Job.find(9739273);
yaml_data = YAML::load(t.handler);
yaml_data.job_data['arguments'].first['segment_event']['userId'] = "some@email.com";
yaml_data.job_data['arguments'].first['userId'] = "some@email.com";
l = YAML::dump(yaml_data);
t.handler = l;
t.attempts = 2;
t.failed_at = nil;
t.save if t.valid?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment