Merge branch 'fix-ci-almet-migration' into 'almet/migration'

Fix ci almet migration

See merge request framasoft/framaspace/argos!34
This commit is contained in:
Alexis Metaireau 2023-12-18 07:55:36 +00:00
commit e7e06f7838
2 changed files with 13 additions and 1 deletions

View file

@ -20,6 +20,7 @@ install:
stage: install stage: install
script: script:
- make venv - make venv
- make develop
cache: cache:
<<: *global_cache <<: *global_cache
policy: push policy: push

View file

@ -92,8 +92,19 @@ def validate_max_lock_seconds(ctx, param, value):
return value return value
def validate_max_results(ctx, param, value):
if value <= 0:
raise click.BadParameter("Should be a positive integer")
return value
@server.command() @server.command()
@click.option("--max-results", default=100, help="Number of results per task to keep") @click.option(
"--max-results",
default=100,
help="Number of results per task to keep",
callback=validate_max_results,
)
@click.option( @click.option(
"--max-lock-seconds", "--max-lock-seconds",
default=100, default=100,