-
Notifications
You must be signed in to change notification settings - Fork 284
Load app definition files from Golem releases CDN #5114
Conversation
4640c07
to
49db37a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Codecov Report
@@ Coverage Diff @@
## develop #5114 +/- ##
==========================================
Coverage ? 90.04%
==========================================
Files ? 236
Lines ? 22227
Branches ? 0
==========================================
Hits ? 20015
Misses ? 2212
Partials ? 0 |
golem/core/variables.py
Outdated
@@ -75,6 +75,8 @@ | |||
# How long should peer be banned when failing on resources (seconds) | |||
ACL_BLOCK_TIMEOUT_RESOURCE = 2 * 3600 # s | |||
|
|||
APP_DEFINITIONS_CDN_URL = 'https://golem-app-definitions.s3.eu-central-1.amazonaws.com/' # noqa pylint: disable=line-too-long |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't that rather be some subdomain in golem.network
that would redirect to s3? ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@etam ^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or maybe @ktomala ?
Resolves: https://github.com/golemfactory/golem/issues/5099
Adds logic for downloading app definition JSON files from CDN in Task API
AppManager
. The definition files are distinguished based on their file name (which, among other things, should contain the hash of the file's contents). Updating apps is done uponAppManager
init and then periodically (once a day usingDailyJobsService
). For every new definition downloaded an RPC event is fired (evt.apps.new_definition
).