You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-10Lines changed: 19 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,7 +99,7 @@ settings.yml
99
99
100
100
*`project_name/models`: where you will put your tasks
101
101
*`project_name/dags/`: where the corresponding dag PNG file will be
102
-
*`project_name/settings.yml`: a configuration file for your project. This file includes the configuration options for your project, such as the path to your data directory.
102
+
*`settings.yml`: a configuration file for your project. This file includes the configuration options for your project, such as the path to your data directory.
103
103
104
104
105
105
@@ -111,10 +111,20 @@ will export the current state of your dag in the `project_name/dags/` as PNG fil
111
111
112
112
## Run your project
113
113
114
-
`pydwt run`
114
+
`pydwt run <module.function_name>`
115
115
116
-
will run the current state of your DAG. It will process the tasks in the DAG by level and parrelise
117
-
it with the `ThreadExecutor`
116
+
If no argument provided will run the current state of your DAG. It will process the tasks in the DAG by level and parallelize
117
+
it with the `ThreadExecutor`. It a task failed then its child tasks will not be run.
118
+
119
+
If argument provided in the form of `module.function_name` for instance `example.task_one` then will run all tasks in the dag leading to this task.
120
+
If parent tasks succeeded then run the task.
121
+
122
+
123
+
## Test your connection setup
124
+
125
+
`pydwt test-connection`
126
+
127
+
will test the current setup of your DB connectiona according to your `settings.yml` file.
118
128
119
129
## Configuration of your pydwt project
120
130
@@ -123,12 +133,11 @@ The `settings.yml` file is a configuration file for your pydwt project. It store
123
133
### connection
124
134
The connection section contains the configuration details for connecting to the database. The available options are:
125
135
126
-
*`db`: the name of the database
127
-
*`host`: the hostname or IP address of the database server
128
-
*`user`: the username for the database connection
129
-
*`password`: the password for the database connection
130
-
*`port`: the port number to use for the database connection
131
-
*`sql_alchemy_driver`: the SQLAlchemy driver to use for the database connection
136
+
*`url`: the connection string to your db
137
+
138
+
You can add others keys that will be forwarded to the underlying `create_engine` function
139
+
for instance you can add a `echo : true` and it will call `create_engine(url=url, echo=echo)`
140
+
see [here](https://docs.sqlalchemy.org/en/20/core/engines.html#sqlalchemy.create_engine) supported args.
132
141
133
142
### project
134
143
The project section contains the project-related settings. The available options are:
0 commit comments