Skip to content

Commit 3a34b32

Browse files
committed
add path to Dockerfile, docker-compose, fix not used parameter only new results #247
1 parent 228a086 commit 3a34b32

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

docker-compose.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ services:
5353
context: mapswipe_workers/
5454
depends_on:
5555
- postgres
56-
command: mapswipe_workers --verbose run --schedule m --only_new_results
56+
command: mapswipe_workers --verbose run --schedule m
5757
volumes:
5858
- ./api-data:/var/lib/mapswipe_workers/api-data/:rw
5959
- ./api-data/agg_results:/var/lib/mapswipe_workers/api-data/agg_results:rw
@@ -62,6 +62,8 @@ services:
6262
- ./api-data/projects:/var/lib/mapswipe_workers/api-data/projects:rw
6363
- ./api-data/results:/var/lib/mapswipe_workers/api-data/results:rw
6464
- ./api-data/tasks:/var/lib/mapswipe_workers/api-data/tasks:rw
65+
- ./api-data/yes_maybe:/var/lib/mapswipe_workers/api-data/yes_maybe:rw
66+
- ./api-data/hot_tm:/var/lib/mapswipe_workers/api-data/hot_tm:rw
6567
restart: "no"
6668
networks:
6769
- mapswipe_workers

mapswipe_workers/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ RUN mkdir -p $data_dir"api-data/history/"
2323
RUN mkdir -p $data_dir"api-data/projects/"
2424
RUN mkdir -p $data_dir"api-data/results/"
2525
RUN mkdir -p $data_dir"api-data/tasks/"
26+
RUN mkdir -p $data_dir"api-data/yes_maybe/"
27+
RUN mkdir -p $data_dir"api-data/hot_tm/"
2628

2729
# copy mapswipe workers repo from local repo
2830
WORKDIR $repo_dir

mapswipe_workers/mapswipe_workers/mapswipe_workers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ class PythonLiteralOption(click.Option):
2929
def type_cast_value(self, ctx, value):
3030
try:
3131
return ast.literal_eval(value)
32-
except:
32+
except Exception as e:
33+
logger.exception(e)
3334
raise click.BadParameter(value)
3435

3536

@@ -313,7 +314,7 @@ def run_create_tutorial(input_file):
313314
f"for which new results have been transfered."
314315
),
315316
)
316-
def run(schedule, only_new_results):
317+
def run(schedule):
317318
sentry.init_sentry()
318319
try:
319320
if schedule:

0 commit comments

Comments
 (0)