Code Monkey home page Code Monkey logo

Comments (10)

DylanLacey avatar DylanLacey commented on August 15, 2024

That's a great idea, adding that to the roadmap.

from sauce_whisk.

prolificcoder avatar prolificcoder commented on August 15, 2024

Also pass_job function always passes, perhaps this is being caused by something down the stack. I would like if name=, build= methods are added globally on SauceWhisK::

from sauce_whisk.

DylanLacey avatar DylanLacey commented on August 15, 2024

pass_job is intended to always pass; The opposite method is fail_job.

If you want to set the status to something else, you can use:
SauceWhisk::Jobs.change_status job_id, status which takes true for passed, false for failed

from sauce_whisk.

prolificcoder avatar prolificcoder commented on August 15, 2024

I understood that but what I am asking is a self method on sauce whisk
module for seeing the name. Reason being pass job always works but fetching
a job by id is flaky. I can give a demonstration in 2 hours over hangout.
On Feb 4, 2014 7:08 PM, "Dylan Lacey" [email protected] wrote:

pass_job is intended to always pass; The opposite method is fail_job.

If you want to set the status to something else, you can use:
SauceWhisk::Jobs.change_status job_id, status which takes true for
passed, false for failed

Reply to this email directly or view it on GitHubhttps://github.com//issues/10#issuecomment-34133801
.

from sauce_whisk.

DylanLacey avatar DylanLacey commented on August 15, 2024

Oh, so pass_job doesn't ever timeout with a 400 error. WEEEIRD. I'll check it out.

I think having name and build accessors is a great idea, also. I'll add to the roadmap too.

from sauce_whisk.

prolificcoder avatar prolificcoder commented on August 15, 2024

Any update?

from sauce_whisk.

prolificcoder avatar prolificcoder commented on August 15, 2024

hmm..

from sauce_whisk.

lukeredpath avatar lukeredpath commented on August 15, 2024

I ran into this problem. The issue occurs when you try and fetch the job while it is still running. You can call SauceWhisk::Jobs.get(job_id) no problem - the 400 Bad Request is the response when trying to fetch the job assets (/job_id/assets). Jobs.fetch will always call this.

The #fetch method should be updated so it still succeeds and returns a valid job even if /assets isn't available (I assume because the job is not yet finished).

from sauce_whisk.

lukeredpath avatar lukeredpath commented on August 15, 2024

As a workaround I'm currently monkey patching SauceWhisk::Jobs to add a new method:

def self.fetch_without_assets(job_id)
  job_hash = JSON.parse(get job_id)
  Job.new(job_hash)
end

from sauce_whisk.

DylanLacey avatar DylanLacey commented on August 15, 2024

Closing due to age.

from sauce_whisk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.