Project

General

Profile

Actions

Idea #4904

closed

[SDKs] Use websockets to restart/reconfigure a web service running on a VM whenever the content of a project changes

Added by Tom Clegg over 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Sample Pipelines
Target version:
Start date:
01/09/2015
Due date:
Story points:
2.0

Description

  1. a really really short Python program that uses a super convenient SDK library call to listen to websockets, waits for a specific event type, and prints "foo"
    • this is mostly just a copy of the main section of ws.py, with "print json.dumps(ev)" and the "subscribe to extra stuff" functionality replaced with something simple like print "new collection arrived: %s" % uuid
  2. a longer but more useful example of that same pattern which brings up a web service based on what it sees there. Example: shut down the old/existing docker container "foo", and start up a new one, passing it the portable_data_hash of the most recently added/updated collection.

Subtasks 3 (0 open3 closed)

Task #4947: Provide example to science teamResolvedPeter Amstutz01/28/2015Actions
Task #5018: Review 4904-arv-webResolvedPeter Amstutz01/09/2015Actions
Task #4946: Fix project directory refresh bug in FUSEResolvedPeter Amstutz01/09/2015Actions
Actions

Also available in: Atom PDF