-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into release/v1.0.8
- Loading branch information
Showing
12 changed files
with
472 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,4 +169,7 @@ cornssh.pub | |
*.db | ||
|
||
# IO files | ||
*.mps | ||
*.mps | ||
|
||
# airflow logs | ||
cornflow-server/airflow_config/logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# AUTHOR: [email protected] | ||
|
||
FROM python:3.10-slim-buster | ||
LABEL maintainer="sistemas@baobabsoluciones" | ||
LABEL maintainer="cornflow@baobabsoluciones" | ||
|
||
# Never prompt the user for choices on installation/configuration of packages | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
@@ -39,6 +39,11 @@ RUN mkdir -p /usr/src/app/log | |
# create folder for custom ssh keys | ||
RUN mkdir /usr/src/app/.ssh | ||
|
||
# user cornflow on application | ||
RUN useradd -ms /bin/bash -d /usr/src/app cornflow | ||
RUN chown -R cornflow: /usr/src/app | ||
USER cornflow | ||
|
||
EXPOSE 5000 | ||
|
||
# execute python init script | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# AIRFLOW custom UI colors for CornflowEnv | ||
|
||
STATE_COLORS = { | ||
"deferred": "#7c4fe0", | ||
"failed": "#c9301c", | ||
"queued": "#656d78", | ||
"removed": "#7bdcb5", | ||
"restarting": "#9b51e0", | ||
"running": "#01FF70", | ||
"scheduled": "#fcb900", | ||
"shutdown": "blue", | ||
"skipped": "darkorchid", | ||
"success": "#00d084", | ||
"up_for_reschedule": "#f78da7", | ||
"up_for_retry": "yellow", | ||
"upstream_failed": "#b31e1e", | ||
} | ||
|
||
from airflow.www.utils import UIAlert | ||
|
||
DASHBOARD_UIALERTS = [ | ||
UIAlert("Welcome! This is the backend of your Cornflow environment. Airflow™ is a platform created by the community to programmatically author, schedule and monitor workflows."), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Airflow LOGS | ||
-------------- | ||
|
||
Users can specify the directory to place log files in airflow.cfg using base_log_folder. By default, logs are placed in the AIRFLOW_HOME directory. | ||
|
||
The following convention is followed while naming logs: {dag_id}/{task_id}/{execution_date}/{try_number}.log | ||
|
||
In addition, users can supply a remote location to store current logs and backups. | ||
|
||
In the Airflow Web UI, local logs take precedence over remote logs. If local logs can not be found or accessed, the remote logs will be displayed. Note that logs are only sent to remote storage once a task is complete (including failure); In other words, remote logs for running tasks are unavailable. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.