Merge pull request #32 from flynn/generate-config-per-job

Generate config per job in the scheduler
Update the scheduler to reconnect to the controller

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Set updated_at when removing a formation

This is so that it will appear as an update when Subscribing to
formation events since a particular time

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Drop comment from scheduler

Since we track the last update seen from the controller and request all
updates after that when reconnecting, there is no need to sync with the
cluster when reconnecting.

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Merge pull request #33 from flynn/scheduler-reconnects

Scheduler reconnects
Simplify artifact uniqueness

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
Merge pull request #30 from archSeer/artifact-uniqueness

Simplify artifact uniqueness
Close client after scheduler disconnect

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Merge pull request #34 from flynn/close-client-after-scheduler-disconnect

Close client after scheduler disconnect
Bump Godeps

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
Publish watchHost as started after it has called StreamEvents

This fixes a race where the tests believe watchHost is ready to stream
events so send it some events, but in fact the watchHost goroutine has
not yet called StreamEvents, so the event from the tests goes nowhere,
and watchHost just hangs once it actually starts waiting for events.

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Add omnipresent job mode.

An omnipresent job will be scheduled on all nodes. Useful for
bootstrapping.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>