From 0abe2e698fe1c16839431a861c21b363fa122500 Mon Sep 17 00:00:00 2001 From: anubhavjana Date: Fri, 3 Mar 2023 00:45:08 +0530 Subject: [PATCH 1/6] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 5908a2e..c210226 100644 --- a/readme.md +++ b/readme.md @@ -180,7 +180,7 @@ if __name__=="__main__":

Supported DAG Primitive

- + dag_primitive From c79b46d41eb8b091b16f33bc978e1daec166a7e9 Mon Sep 17 00:00:00 2001 From: anubhavjana Date: Fri, 3 Mar 2023 00:46:22 +0530 Subject: [PATCH 2/6] Update readme.md --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index c210226..151f73a 100644 --- a/readme.md +++ b/readme.md @@ -180,9 +180,9 @@ if __name__=="__main__":

Supported DAG Primitive

- + -dag_primitive +dag_primitive

Accepted DAG Format

From 858364f235d6476ecf628783673bf52308bfa744 Mon Sep 17 00:00:00 2001 From: anubhavjana Date: Fri, 3 Mar 2023 00:47:01 +0530 Subject: [PATCH 3/6] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 151f73a..8c0dfb4 100644 --- a/readme.md +++ b/readme.md @@ -266,7 +266,7 @@ DAG specification includes both control dependancy as well as the control depend

Sample Example Usage

-odd-even-action +odd-even-action { From e548b07226999a8397900074c5aa43de9bbfa5e7 Mon Sep 17 00:00:00 2001 From: anubhavjana Date: Fri, 3 Mar 2023 00:54:03 +0530 Subject: [PATCH 4/6] Update readme.md --- readme.md | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) diff --git a/readme.md b/readme.md index 8c0dfb4..6db3046 100644 --- a/readme.md +++ b/readme.md @@ -405,50 +405,3 @@ op_2 = params["__ow_body"][1]["key_action_2"] Use these op_1 and op_2 to process ############################################## - -

MongoDB - DAG Store

- -DAG Registration stores the given dag specification to a mongodb database named dag_store and collection named dags - -
Using mongo
- -* sudo service mongodb start: Starts the mongodb service - -* mongo: Starts the mongo shell - -* show dbs: Lists all databases - -* use dag_store: Creates (if not present) and switches to this database - -* db: View the current database - - -## Sample usage ## - -use dag_store - -db.dag_metadata.deleteOne({"_id" : ObjectId("63f523cac540a53983362751")}) - -db.dags.deleteOne({"_id" : ObjectId("63f523cac540a53983362751")}) - -db.dags.find() - -db.dag_metadata.find() - -db.dags.find({},{"_id": 1,"name":1}) - -db.dags.find("name":"odd-even-test-2") - -use function_store - -db.functions.find() - -db.functions.deleteOne({"_id" : ObjectId("63fb33dd52f32fb6cb755517")}) - -use trigger_store - -db.triggers.find() - -db.triggers.deleteOne({"_id" : ObjectId("6400b57040aa62f477087c07")}) - - From c848cf2795fe77f4f31738de11eb5b19c2cdaaa3 Mon Sep 17 00:00:00 2001 From: anubhavjana Date: Sun, 5 Mar 2023 12:58:16 +0530 Subject: [PATCH 5/6] Update control.py --- controlplane/control.py | 1 - 1 file changed, 1 deletion(-) diff --git a/controlplane/control.py b/controlplane/control.py index d03fc64..960dfd4 100644 --- a/controlplane/control.py +++ b/controlplane/control.py @@ -16,7 +16,6 @@ from requests.packages.urllib3.exceptions import InsecureRequestWarning from flask import Flask, request,jsonify,send_file requests.packages.urllib3.disable_warnings(InsecureRequestWarning) import pymongo -import shutil app = Flask(__name__) From 544c0a4dc690739a0fe08a2b7a830d804bb9f647 Mon Sep 17 00:00:00 2001 From: anubhavjana Date: Sun, 5 Mar 2023 12:59:12 +0530 Subject: [PATCH 6/6] Update test.py --- function_modules/testaction/test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/function_modules/testaction/test.py b/function_modules/testaction/test.py index 3c23890..e898102 100644 --- a/function_modules/testaction/test.py +++ b/function_modules/testaction/test.py @@ -3,6 +3,7 @@ import os import json import sys + def main(): activation_id = os.environ.get('__OW_ACTIVATION_ID') params = json.loads(sys.argv[1]) @@ -23,4 +24,4 @@ def main(): if __name__ == "__main__": - main() \ No newline at end of file + main()