Skip to content

Commit

Permalink
remove build schedule from hub server, now part of build config
Browse files Browse the repository at this point in the history
(autobuild)
  • Loading branch information
sirloon committed Apr 2, 2020
1 parent 1b169f2 commit 15e5a59
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
11 changes: 3 additions & 8 deletions src/bin/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def configure_build_manager(self):
builder_class=partial(MyGeneDataBuilder,mappers=[ensembl2entrez]),
job_manager=self.managers["job_manager"])
build_manager.configure()
build_manager.poll()
self.managers["build_manager"] = build_manager
self.logger.info("Using custom builder %s" % MyGeneDataBuilder)

Expand Down Expand Up @@ -68,18 +69,12 @@ def configure_commands(self):
#self.commands["publish_diff"] = partial(self.managers["diff_manager"].publish_diff,config.S3_APP_FOLDER)
#self.commands["publish_snapshot"] = partial(self.managers["index_manager"].publish_snapshot,s3_folder=config.S3_APP_FOLDER)

def before_start(self):
self.logger.info("Scheduling builds")
allspecies = partial(server.shell.launch,partial(server.managers["build_manager"].merge,"mygene_allspecies"))
demo = partial(server.shell.launch,partial(server.managers["build_manager"].merge,"demo_allspecies"))
server.managers["job_manager"].submit(allspecies,"0 4 * * 7")
server.managers["job_manager"].submit(demo,"0 6 * * 7")

import hub.dataload
from hub.datatransform.keylookup import MyGeneKeyLookup
# pass explicit list of datasources (no auto-discovery)
server = MyGeneHubServer(config.ACTIVE_DATASOURCES,name="MyGene.info",
managers_custom_args={"dataplugin" : {"keylookup" : MyGeneKeyLookup}})
managers_custom_args={"dataplugin" : {"keylookup" : MyGeneKeyLookup}},
api_config=False)

if __name__ == "__main__":
server.start()
Expand Down
1 change: 1 addition & 0 deletions src/config_hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@
# SSH port for hub console
HUB_SSH_PORT = 7022
HUB_API_PORT = 7080
READONLY_HUB_API_PORT = 7081

################################################################################
# HUB_PASSWD
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/pantherdb/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@
"skip_on_failure": true
}
}
}
}

0 comments on commit 15e5a59

Please sign in to comment.