-const STATIC_DEMO_RESOLVE = {"graph": {"resources": [{"id": "demo.install_nginx", "short_name": "install_nginx", "node_name": "demo", "description": "install nginx", "needs": [], "check": "test -x /tmp/cgr-pages-demo/bin/nginx", "run": "mkdir -p /tmp/cgr-pages-demo/bin && printf '#!/bin/sh\\nexit 0\\n' > /tmp/cgr-pages-demo/bin/nginx && chmod +x /tmp/cgr-pages-demo/bin/nginx", "script_path": "", "run_as": "", "timeout": 300, "timeout_reset_on_output": false, "retries": 0, "retry_delay": 5, "on_fail": "stop", "is_verify": false, "provenance": null, "identity_hash": "4170b424c04edf1a", "parallel_group": null, "concurrency_limit": null, "is_race": false, "race_into": null, "is_barrier": false, "source_line": 5, "collect_key": null, "http_method": null, "wait_kind": null, "subgraph_path": null}, {"id": "demo.write_site_config", "short_name": "write_site_config", "node_name": "demo", "description": "write site config", "needs": ["demo.install_nginx"], "check": "", "run": "", "script_path": "", "run_as": "", "timeout": 300, "timeout_reset_on_output": false, "retries": 0, "retry_delay": 5, "on_fail": "stop", "is_verify": false, "provenance": null, "identity_hash": "35e3b81f35b769e3", "parallel_group": null, "concurrency_limit": null, "is_race": false, "race_into": null, "is_barrier": false, "source_line": 9, "collect_key": null, "http_method": null, "wait_kind": null, "subgraph_path": null}, {"id": "demo.enable_site", "short_name": "enable_site", "node_name": "demo", "description": "enable site", "needs": ["demo.write_site_config"], "check": "test -L /tmp/cgr-pages-demo/sites-enabled/myapp", "run": "mkdir -p /tmp/cgr-pages-demo/sites-enabled && ln -sf /tmp/cgr-pages-demo/nginx.conf /tmp/cgr-pages-demo/sites-enabled/myapp", "script_path": "", "run_as": "", "timeout": 300, "timeout_reset_on_output": false, "retries": 0, "retry_delay": 5, "on_fail": "stop", "is_verify": false, "provenance": null, "identity_hash": "6700a9afbc43ce5f", "parallel_group": null, "concurrency_limit": null, "is_race": false, "race_into": null, "is_barrier": false, "source_line": 21, "collect_key": null, "http_method": null, "wait_kind": null, "subgraph_path": null}, {"id": "demo.deploy_code", "short_name": "deploy_code", "node_name": "demo", "description": "deploy code", "needs": ["demo.install_nginx"], "check": "test -f /tmp/cgr-pages-demo/www/index.html", "run": "mkdir -p /tmp/cgr-pages-demo/www && printf '<h1>Hello from CommandGraph</h1>\\n' > /tmp/cgr-pages-demo/www/index.html", "script_path": "", "run_as": "", "timeout": 300, "timeout_reset_on_output": false, "retries": 0, "retry_delay": 5, "on_fail": "stop", "is_verify": false, "provenance": null, "identity_hash": "12d49ea429d6890e", "parallel_group": null, "concurrency_limit": null, "is_race": false, "race_into": null, "is_barrier": false, "source_line": 26, "collect_key": null, "http_method": null, "wait_kind": null, "subgraph_path": null}, {"id": "demo.start_nginx", "short_name": "start_nginx", "node_name": "demo", "description": "start nginx", "needs": ["demo.enable_site", "demo.deploy_code"], "check": "", "run": "printf 'nginx would reload here\\n'", "script_path": "", "run_as": "", "timeout": 300, "timeout_reset_on_output": false, "retries": 0, "retry_delay": 5, "on_fail": "stop", "is_verify": false, "provenance": null, "identity_hash": "fe6f71951dad307b", "parallel_group": null, "concurrency_limit": null, "is_race": false, "race_into": null, "is_barrier": false, "source_line": 31, "collect_key": null, "http_method": null, "wait_kind": null, "subgraph_path": null}, {"id": "demo.__verify_35", "short_name": "__verify_35", "node_name": "demo", "description": "site is live", "needs": ["demo.start_nginx"], "check": "", "run": "test -f /tmp/cgr-pages-demo/www/index.html", "script_path": "", "run_as": "", "timeout": 30, "timeout_reset_on_output": false, "retries": 3, "retry_delay": 2, "on_fail": "warn", "is_verify": true, "provenance": null, "identity_hash": "48a0a8e3130f2cf5", "parallel_group": null, "concurrency_limit": null, "is_race": false, "race_into": null, "is_barrier": false, "source_line": 35, "collect_key": null, "http_method": null, "wait_kind": null, "subgraph_path": null}], "waves": [["demo.install_nginx"], ["demo.deploy_code", "demo.write_site_config"], ["demo.enable_site"], ["demo.start_nginx"], ["demo.__verify_35"]], "nodes": {"demo": {"via": "local", "host": "", "user": "", "port": "22"}}, "provenance": [], "dedup": {}, "variables": {}}, "resources": 6, "waves_count": 5, "waves": 5, "variables": {}, "external_files": []};
0 commit comments