Re: [echidna] Generate unique id to identify the job (#60)

> +        requests[id] = {
> +            'id': id,
> +            'url': url,
> +            'decision': decision,
> +            'isManifest': isManifest,
> +            'jobs': {},
> +            'history': new History(),
> +            'status': STATUS_STARTED
> +        };
> +
> +        orchestrate(requests[id], isManifest, token).then(function () {
> +            console.log('Spec at ' + url + ' (decision: ' + decision + ') has FINISHED.');
> +        }, function (err) {
> +            console.log('Spec at ' + url + ' (decision: ' + decision + ') has FAILED.');
> +        });
> +        res.status(202).send(id);

202 mean that you accepted the job, but don't give information about the status.
303 redirect to the status, in that case you will see the status (starting with the successful creation, of course).

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/echidna/pull/60/files#r24240653

Received on Friday, 6 February 2015 13:45:18 UTC