-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNotes
68 lines (50 loc) · 1.93 KB
/
Notes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Next step:
- [DONE] Create and upload lambda functions (from s3 buckets for now)
- [DONE] Versioning lambda functions on Updates
- [DONE] Set appropriate permissions for invoking lambda functions from Kinesis
- [DONE] Research Kinesis
- [DONE] How to publish to Kinesis
- [DONE] How to invoke lambda functions from Kinesis
- [DONE] Parse YAML file
- [DONE] Parse command line (and give appropriate syntax error)
- [DONE] Logging of the program
- [DONE] Create a workflow
- [DONE] Test the workflow
- [DONE] Track workflow
- REST API
- [DONE] POST /publish
- [DONE] GET /track/workflows/<workflow_id>/executions/<execution_id>
- [DONE] Fix all TODOs
- [DONE] Test pub/sub
- [DONE] Complete examples
- Monitor Lambda functions
Using xFlow
===========
Set the aws credentials in ~/.aws/config and ~/.aws/credentials
Testing:
nosetests -svx tests
Validating config:
python xflow/__init__.py examples/wordcount/wordcount.yaml -v
Configuring:
python xflow/__init__.py examples/wordcount/wordcount.yaml -c
Publishing:
python xflow/__init__.py examples/wordcount/wordcount.yaml \
--log-level INFO \
-p FileUploaded '{"execution_id":"aaa", "message":"Testing"}'
Server Mode:
Start server:
python xflow/__init__.py examples/wordcount/wordcount.yaml --log-level INFO -s
Publish:
curl -XPOST localhost/publish -d '{"stream":"FileUploaded", "event":{"execution_id":"ccc", "message":"Test with ccc"}}'
Track:
curl -v localhost/track/workflows/compute_word_count/executions/ccc
Releasing to pypi
http://sherifsoliman.com/2016/09/30/Python-package-with-GitHub-PyPI/
====================================================================
- Do all your commits
- git tag <VERSION> -m "Adds <VERSION> tag for PyPI"
- git push --tags origin master
- python setup.py register -r pypitest
- python setup.py sdist upload -r pypitest
- python setup.py register -r pypi
- python setup.py sdist upload -r pypi