Skip to content

Commit 714393b

Browse files
authored
Merge pull request #146 from neuroforgede/wip/improve-int-or-crontab-to-fix-default-crontab-settings/main
Wip/improve int or crontab to fix default crontab settings/main
2 parents 8124179 + 62603af commit 714393b

File tree

8 files changed

+23
-19
lines changed

8 files changed

+23
-19
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ jobs:
145145
source venv/bin/activate
146146
(bash install_dev_dependencies.sh && python3 setup.py sdist) || exit 1
147147
# copy into separate file to prevent issues where the source and target are the same
148-
mv dist/compose_client-2.2.15*.tar.gz dist/release.tar.gz
148+
mv dist/compose_client-2.2.16*.tar.gz dist/release.tar.gz
149149
mv dist/release.tar.gz dist/compose_client-$RELEASE_VERSION.tar.gz
150150
151151
- name: "zip deploy/local folder"

client/compose_client/cli/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
@click.group()
3030
def cli() -> None:
3131
"""
32-
NF Compose CLI - version: 2.2.15
32+
NF Compose CLI - version: 2.2.16
3333
"""
3434
pass
3535

client/compose_client/library/connection/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import datetime
2323

2424

25-
USER_AGENT = 'compose_cli 2.2.15'
25+
USER_AGENT = 'compose_cli 2.2.16'
2626

2727

2828
class APIClient(abc.ABC):

client/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def cli_test_suite():
2020
setuptools.setup(
2121
name="compose_client",
2222
scripts=['bin/compose_cli'],
23-
version="2.2.15",
23+
version="2.2.16",
2424
author="NeuroForge GmbH & Co. KG",
2525
author_email="kontakt@neuroforge.de",
2626
description="NF Compose package",

deploy/local/compose/docker-compose.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ services:
4444
restart: unless-stopped
4545

4646
nfcomposeskipper:
47-
image: "${SKIPPER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper:2.2.15}"
47+
image: "${SKIPPER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper:2.2.16}"
4848
networks:
4949
postgres:
5050
nfcompose:
@@ -66,7 +66,7 @@ services:
6666

6767
# inside facing container used for separating internal requests so that outside requests are not harmed by etl jobs
6868
nfcomposeskipper_internal:
69-
image: "${SKIPPER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper:2.2.15}"
69+
image: "${SKIPPER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper:2.2.16}"
7070
networks:
7171
postgres:
7272
nfcompose:
@@ -86,7 +86,7 @@ services:
8686
SKIPPER_TASK_DASHBOARD_UPSTREAM: "http://skipper.task.dashboard.${INTERNAL_DOMAIN_SUFFIX:-test.local}:5555"
8787

8888
nfcompose_skipper_celery:
89-
image: "${SKIPPER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper:2.2.15}"
89+
image: "${SKIPPER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper:2.2.16}"
9090
networks:
9191
- postgres
9292
- nfcompose
@@ -104,7 +104,7 @@ services:
104104
restart: unless-stopped
105105

106106
nfcompose_skipper_celery_beat:
107-
image: "${SKIPPER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper:2.2.15}"
107+
image: "${SKIPPER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper:2.2.16}"
108108
networks:
109109
- postgres
110110
- nfcompose
@@ -126,7 +126,7 @@ services:
126126
restart: unless-stopped
127127

128128
nfcompose_skipper_task_dashboard:
129-
image: "${SKIPPER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper:2.2.15}"
129+
image: "${SKIPPER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper:2.2.16}"
130130
networks:
131131
postgres: {}
132132
nfcompose:
@@ -144,7 +144,7 @@ services:
144144
restart: unless-stopped
145145

146146
nfcomposeskipperproxy:
147-
image: "${SKIPPER_PROXY_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper-proxy:2.2.15}"
147+
image: "${SKIPPER_PROXY_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper-proxy:2.2.16}"
148148
restart: unless-stopped
149149
depends_on:
150150
- nfcomposeskipper

deploy/local/integration/library/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from library.types import JSONType
1818

1919

20-
USER_AGENT = 'integration_test compose 2.2.15'
20+
USER_AGENT = 'integration_test compose 2.2.16'
2121

2222

2323
class APIClient(abc.ABC):

deploy/production/docker-compose/docker-compose.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ services:
156156
- "nodered.local"
157157

158158
consumer_gateway:
159-
image: "${SKIPPER_CONSUMER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-consumer-gateway:2.2.15}"
159+
image: "${SKIPPER_CONSUMER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-consumer-gateway:2.2.16}"
160160
restart: unless-stopped
161161
networks:
162162
postgres:
@@ -171,7 +171,7 @@ services:
171171
start_period: 1s
172172

173173
skipper:
174-
image: "${SKIPPER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper:2.2.15}"
174+
image: "${SKIPPER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper:2.2.16}"
175175
restart: unless-stopped
176176
networks:
177177
postgres:
@@ -187,7 +187,7 @@ services:
187187

188188
# inside facing container used for separating internal requests so that outside requests are not harmed by etl jobs
189189
skipper_internal:
190-
image: "${SKIPPER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper:2.2.15}"
190+
image: "${SKIPPER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper:2.2.16}"
191191
restart: unless-stopped
192192
networks:
193193
postgres:
@@ -203,7 +203,7 @@ services:
203203
SKIPPER_DJANGO_EXTRA_ALLOWED_HOSTS: "skipper.internal.local"
204204

205205
skipper_celery:
206-
image: "${SKIPPER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper:2.2.15}"
206+
image: "${SKIPPER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper:2.2.16}"
207207
restart: unless-stopped
208208
networks:
209209
- postgres
@@ -216,7 +216,7 @@ services:
216216
SKIPPER_CONTAINER_TYPE: "CELERY"
217217

218218
skipper_celery_beat:
219-
image: "${SKIPPER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper:2.2.15}"
219+
image: "${SKIPPER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper:2.2.16}"
220220
restart: unless-stopped
221221
networks:
222222
- postgres
@@ -227,7 +227,7 @@ services:
227227
SKIPPER_CONTAINER_TYPE: "CELERY_BEAT"
228228

229229
skipper_task_dashboard:
230-
image: "${SKIPPER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper:2.2.15}"
230+
image: "${SKIPPER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper:2.2.16}"
231231
restart: unless-stopped
232232
networks:
233233
postgres: {}
@@ -239,7 +239,7 @@ services:
239239
SKIPPER_CONTAINER_TYPE: "TASK_DASHBOARD"
240240

241241
skipper_proxy:
242-
image: "${SKIPPER_PROXY_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper-proxy:2.2.15}"
242+
image: "${SKIPPER_PROXY_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper-proxy:2.2.16}"
243243
environment:
244244
SKIPPER_BACKEND_SERVICE: "skipper.local"
245245
SKIPPER_BACKEND_SERVICE_PORT: "8000"
@@ -283,7 +283,7 @@ services:
283283
284284
python manage.py collectstatic --noinput
285285
check_result "failed to collect static files"
286-
image: "${SKIPPER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper:2.2.15}"
286+
image: "${SKIPPER_DOCKER_IMAGE:-ghcr.io/neuroforgede/nfcompose-skipper:2.2.16}"
287287
environment:
288288
# force rerun everytime
289289
DEPLOY_DATE: "${DEPLOY_DATE}"

skipper/skipper/celery.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919

2020

2121
def int_or_crontab(input: Any, key: str) -> Union[int, crontab]:
22+
if isinstance(input, int):
23+
return input
24+
if isinstance(input, crontab):
25+
return input
2226
try: # attempt to interpret input as positive int
2327
out = int(input)
2428
if out <= 0:

0 commit comments

Comments
 (0)