agola/internal/services/runservice
Simone Gotti f812597410 runservice: maintenance/export/import
Implement runservice maintenance mode and export/import.

When runservice is set in maintenance mode it'll start only the maintenance and
export/import handlers.

Setting maintenance mode will set a key in etcd so all the runservice instances
will detect it and enter in maintenance mode. This is done asyncronously so it
could take some time (future improvements will add some api to show all the
runservice states)

Export is always available and will export the datamanager contents. Currently
only datamanager contents are exported (no logs and workspace archives).

Import is available only during maintenance, given a datamanager export will
import it and reset etcd to this import state.
2019-07-29 11:52:30 +02:00
..
action runservice: maintenance/export/import 2019-07-29 11:52:30 +02:00
api runservice: maintenance/export/import 2019-07-29 11:52:30 +02:00
common runservice: maintenance/export/import 2019-07-29 11:52:30 +02:00
readdb readdb: close and open readdb on Run 2019-07-25 17:59:54 +02:00
store runservice: fix linter errors 2019-07-02 14:53:01 +02:00
types runservice: add getruns filter by result 2019-07-05 10:32:51 +02:00
runservice.go runservice: maintenance/export/import 2019-07-29 11:52:30 +02:00
scheduler_test.go runservice: fix linter errors 2019-07-02 14:53:01 +02:00
scheduler.go *: use sleep timer in loops 2019-07-25 16:22:54 +02:00