Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Load app definition files from Golem releases CDN #5114

Merged
merged 13 commits into from
Mar 5, 2020

Conversation

kmazurek
Copy link
Contributor

@kmazurek kmazurek commented Mar 3, 2020

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 upon AppManager init and then periodically (once a day using DailyJobsService). For every new definition downloaded an RPC event is fired (evt.apps.new_definition).

@kmazurek kmazurek self-assigned this Mar 3, 2020
@kmazurek kmazurek force-pushed the remote-app-definitions branch from 4640c07 to 49db37a Compare March 3, 2020 17:11
@kmazurek kmazurek requested review from jiivan and maaktweluit March 3, 2020 17:13
Copy link
Contributor

@maaktweluit maaktweluit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@codecov
Copy link

codecov bot commented Mar 3, 2020

Codecov Report

❗ No coverage uploaded for pull request base (develop@6f4df24). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             develop    #5114   +/-   ##
==========================================
  Coverage           ?   90.04%           
==========================================
  Files              ?      236           
  Lines              ?    22227           
  Branches           ?        0           
==========================================
  Hits               ?    20015           
  Misses             ?     2212           
  Partials           ?        0           

@@ -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
Copy link
Contributor

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? ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@etam ^

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or maybe @ktomala ?

@kmazurek kmazurek merged commit 7835ab4 into develop Mar 5, 2020
@kmazurek kmazurek deleted the remote-app-definitions branch March 5, 2020 15:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Load remote app_definition files
3 participants