Allow users to cancel a running crunch job by updating cancelled_at
authorTom Clegg <tom@clinicalfuture.com>
Fri, 22 Nov 2013 23:34:31 +0000 (15:34 -0800)
committerTom Clegg <tom@clinicalfuture.com>
Fri, 22 Nov 2013 23:41:57 +0000 (15:41 -0800)
commitf99ffd6844ae9b88cfd17c8fe6e9fcc85a55d79c
tree502050b6e8db7a913725a9468a1cf456f29dae2d
parent7d0e45a176eb45f14b921a0d8d2dc07e0862e91f
Allow users to cancel a running crunch job by updating cancelled_at
(to something other than nil).

Also:
* Add test fixtures for jobs
* Take care to update the Job object piecemeal during crunch-job
  (avoid overwriting cancelled_at)
12 files changed:
sdk/cli/bin/crunch-job
sdk/perl/lib/Arvados/ResourceProxy.pm
services/api/Gemfile
services/api/Gemfile.lock
services/api/app/models/job.rb
services/api/config/environments/development.rb.example
services/api/config/environments/production.rb.example
services/api/config/environments/test.rb.example
services/api/script/crunch-dispatch.rb
services/api/test/fixtures/api_clients.yml
services/api/test/fixtures/jobs.yml [new file with mode: 0644]
services/api/test/functional/arvados/v1/jobs_controller_test.rb