-
Notifications
You must be signed in to change notification settings - Fork 0
Prefect #145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
MarkTNO
wants to merge
10
commits into
main
Choose a base branch
from
prefect
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Prefect #145
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
ed0b8cd
prefect working
MarkTNO 12cd555
update mesido
MarkTNO be79e9a
restructure, cleanup
MarkTNO e71fd12
fix ci
MarkTNO 773463a
add all files
MarkTNO 2dbe771
fix test
MarkTNO f1b82ea
use sdk
MarkTNO 495ba5f
public action run name updated
MarkTNO a4ce92a
add prefect run timeout, minio port env var
MarkTNO cb76a57
fix gitlab ci test
MarkTNO File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,26 +1,34 @@ | ||
| .git/ | ||
| .github/ | ||
| .venv/ | ||
| .vscode/ | ||
| .idea/ | ||
|
|
||
| .venv/ | ||
| __pycache__/ | ||
| *.py[cod] | ||
| *.egg-info/ | ||
|
|
||
| .pytest_cache/ | ||
| .mypy_cache/ | ||
| .ruff_cache/ | ||
| .coverage | ||
| .coverage.* | ||
| htmlcov/ | ||
| test-results.xml | ||
|
|
||
| ci/ | ||
| doc/ | ||
| gurobi/ | ||
| htmlcov/ | ||
| local_test/ | ||
| *.egg-info/ | ||
| unit_test/ | ||
| tests/ | ||
| gurobi/ | ||
|
|
||
| .env | ||
| .env.local | ||
| .env.template | ||
| .gitignore | ||
| .taplo.toml | ||
| .env.* | ||
|
|
||
| CHANGELOG.md | ||
| CONTRIBUTING.md | ||
| dev.Dockerfile | ||
| docker-compose.worker-only.yml | ||
| docker-compose.yml | ||
| LICENSE | ||
| run.bat | ||
| run.sh | ||
| run_windows.sh | ||
| test-results.xml | ||
| dev.Dockerfile |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,22 +1,34 @@ | ||
| ESDL_OUTPUT_PROFILES_TYPE=POSTGRESQL | ||
| LOG_LEVEL=INFO | ||
|
|
||
| DB_HOSTNAME=omotes_postgres | ||
| ESDL_OUTPUT_PROFILES_TYPE=POSTGRESQL | ||
| DB_HOSTNAME=omotes-postgres | ||
| DB_PORT=6432 | ||
| DB_USERNAME=omotes_timeseries_rw | ||
| DB_PASSWORD=somepass4 | ||
|
|
||
| RABBITMQ_USERNAME=celery | ||
| RABBITMQ_PASSWORD=somepass2 | ||
| RABBITMQ_HOSTNAME=localhost | ||
| RABBITMQ_PORT=5672 | ||
| RABBITMQ_VIRTUALHOST=omotes_celery | ||
| # ESDL_OUTPUT_PROFILES_TYPE=INFLUXDB | ||
| # DB_HOSTNAME=omotes-influxdb | ||
| # DB_PORT=8096 | ||
| # DB_USERNAME=root | ||
| # DB_PASSWORD=9012 | ||
|
|
||
| # May be grow_optimizer_default, grow_optimizer_no_heat_losses, grow_optimizer_with_pressure or grow_simulator | ||
| GROW_TASK_TYPE=grow_optimizer_default | ||
| LOG_LEVEL=INFO | ||
| MINIO_HOST=omotes-minio | ||
| MINIO_PORT=9000 | ||
| MINIO_EXTERNAL_HOST=omotes-minio | ||
| MINIO_ACCESS_KEY=omotesadmin | ||
| MINIO_SECRET=password | ||
|
|
||
| PREFECT_API_URL=http://localhost:4200/api | ||
| PREFECT_API_URL_FOR_WORKER=http://omotes-prefect-server:4200/api | ||
| PREFECT_WORK_POOL_NAME="docker-worker" | ||
| PREFECT_API_AUTH_STRING=admin:password | ||
|
|
||
| TASK_RESULT_QUEUE_NAME=omotes_task_result_events | ||
| TASK_PROGRESS_QUEUE_NAME=omotes_task_progress_events | ||
| PREFECT_FLOW_MAX_CONCURRENT_RUNS=4 | ||
| PREFECT_FLOW_TIMEOUT_SECONDS=172800 | ||
|
|
||
| # MAX_TASKS_BEFORE_RESTART: 0 means no scheduled restarts | ||
| MAX_TASKS_BEFORE_RESTART=0 | ||
| # For deploying to prefect (will run inside local docker container or k8s pod) | ||
| # When using docker desktop you can use your local code without pushing to github first: | ||
| PREFECT_USE_LOCAL_CODE_AND_IMAGE=true | ||
| PREFECT_USE_LOCAL_SDK_AND_MESIDO=true | ||
| # OPTIMIZER_WORKER_VERSION not used when PREFECT_USE_LOCAL_CODE_AND_IMAGE=true: | ||
| OPTIMIZER_WORKER_VERSION=0.0.0 | ||
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
|---|---|---|
| @@ -1,28 +1,48 @@ | ||
| name: Deply to GitHub Container Registry | ||
| name: Publish Container Image | ||
| run-name: Releasing next version 🚀 | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - '*' | ||
| - "*" | ||
|
|
||
| jobs: | ||
| publish-container-image: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout sources | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 0 | ||
| publish-container-image: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| steps: | ||
| - name: Checkout sources | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - name: Log in to GitHub Container Registry | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Login to GitHub Container Registry | ||
| uses: docker/login-action@v1 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
| - name: Extract Docker metadata | ||
| id: meta | ||
| uses: docker/metadata-action@v5 | ||
| with: | ||
| images: ghcr.io/project-omotes/omotes-optimizer | ||
| tags: | | ||
| type=raw,value=latest | ||
| type=raw,value=${{ github.ref_name }} | ||
|
|
||
| - name: Build the container image | ||
| run: | | ||
| docker build . --tag ghcr.io/project-omotes/omotes-grow-optimizer-worker:latest --tag ghcr.io/project-omotes/omotes-grow-optimizer-worker:${{ github.ref_name}} | ||
| docker push ghcr.io/project-omotes/omotes-grow-optimizer-worker:latest | ||
| docker push ghcr.io/project-omotes/omotes-grow-optimizer-worker:${{ github.ref_name}} | ||
| - name: Build and push container image | ||
| uses: docker/build-push-action@v6 | ||
| with: | ||
| context: . | ||
| file: ./Dockerfile | ||
| push: true | ||
| tags: ${{ steps.meta.outputs.tags }} | ||
| labels: ${{ steps.meta.outputs.labels }} | ||
| cache-from: type=gha | ||
| cache-to: type=gha,mode=max | ||
|
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.