Commit 45b3f93a authored by Baptiste CHOCOT's avatar Baptiste CHOCOT
Browse files

change type of `chunk-id` from str to int

parent 18d9c608
......@@ -40,7 +40,7 @@ class ActevPostProcessChunk(ActevCommand):
'required named arguments')
required_named.add_argument("-i", "--chunk-id", help="chunk id",
required=True)
required=True, type=int)
arg_parser.add_argument("-s", "--system-cache-dir",
help="path to system cache directory")
arg_parser.set_defaults(
......
......@@ -40,7 +40,7 @@ class ActevPreProcessChunk(ActevCommand):
'required named arguments')
required_named.add_argument(
"-i", "--chunk-id", help="chunk id", required=True)
"-i", "--chunk-id", help="chunk id", required=True, type=int)
arg_parser.add_argument(
"-s", "--system-cache-dir", help="path to system cache directory")
arg_parser.set_defaults(func=ActevPreProcessChunk.command, object=self)
......@@ -39,7 +39,7 @@ class ActevProcessChunk(ActevCommand):
'required named arguments')
required_named.add_argument(
"-i", "--chunk-id", help="chunk id", required=True)
"-i", "--chunk-id", help="chunk id", required=True, type=int)
arg_parser.add_argument(
"-s", "--system-cache-dir", help="path to system cache directory")
arg_parser.set_defaults(func=ActevProcessChunk.command, object=self)
......@@ -37,7 +37,7 @@ class ActevResetChunk(ActevCommand):
'required named arguments')
required_named.add_argument(
"-i", "--chunk-id", help="chunk id", required=True)
"-i", "--chunk-id", help="chunk id", required=True, type=int)
arg_parser.add_argument(
"-s", "--system-cache-dir", help="path to system cache directory")
arg_parser.set_defaults(func=ActevResetChunk.command, object=self)
......@@ -31,4 +31,4 @@ class ActevStatusChunkQuery(ActevCommand):
required_named = arg_parser.add_argument_group(
'required named arguments')
required_named.add_argument("-i", "--chunk-id", help="chunk id",
required=True)
required=True, type=int)
......@@ -15,6 +15,6 @@ def entry_point(query_type, chunk_id=None):
Args:
query_type (str): status type desired
chunk_id (str, optional): chunk id
chunk_id (int, optional): chunk id
"""
check_status(query_type, chunk_id=chunk_id)
......@@ -13,7 +13,7 @@ def entry_point(chunk_id, system_cache_dir):
Post-process a chunk.
Args:
chunk_id (str): Chunk id
chunk_id (int): Chunk id
system_cache_dir (str): Path to system cache directory
"""
......
......@@ -13,7 +13,7 @@ def entry_point(chunk_id, system_cache_dir):
Pre-process a chunk.
Args:
chunk_id (str): Chunk id
chunk_id (int): Chunk id
system_cache_dir (str): Path to system cache directory
"""
......
......@@ -14,7 +14,7 @@ def entry_point(chunk_id, system_cache_dir):
Process a chunk.
Args:
chunk_id (str): Chunk id
chunk_id (int): Chunk id
system_cache_dir (str): Path to system cache directory
"""
......
......@@ -13,7 +13,7 @@ def entry_point(chunk_id, system_cache_dir):
Delete all cached information for ChunkID so that the chunk can be re-run.
Args:
chunk_id (str): Chunk id
chunk_id (int): Chunk id
system_cache_dir (str): Path to system cache directory
"""
raise NotImplementedError("You should implement the entry_point method.")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment