本文整理汇总了Python中gc3libs.workflow.RetryableTask类的典型用法代码示例。如果您正苦于以下问题:Python RetryableTask类的具体用法?Python RetryableTask怎么用?Python RetryableTask使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了RetryableTask类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, input_dir, working_dir, output_container, **extra_args):
RetryableTask.__init__(
self,
# actual computational job
GeoSphereApplication(input_dir, working_dir, output_container, **extra_args),
# keyword arguments
**extra_args)
示例2: __init__
def __init__(self, input_model, output_model, **extra_args):
RetryableTask.__init__(
self,
# actual computational job
GeoSphereApplication(input_model, output_model, **extra_args),
# keyword arguments
**extra_args)
示例3: __init__
def __init__(self, executable, **extra_args):
RetryableTask.__init__(
self,
# actual computational job
GGenericApplication(executable, **extra_args),
# keyword arguments
**extra_args)
示例4: __init__
def __init__(self, network_data_file, run_script, **extra_args):
RetryableTask.__init__(
self,
# actual computational job
GbenchmarkApplication(network_data_file, run_script, **extra_args),
**extra_args
)
示例5: __init__
def __init__(self, **extra_args):
RetryableTask.__init__(
self,
# actual computational job
GSMD_ProjectionsApplication(**extra_args),
# keyword arguments
**extra_args)
示例6: __init__
def __init__(self, input_file, **extra_args):
RetryableTask.__init__(
self,
# actual computational job
GpyradApplication(input_file, **extra_args),
# keyword arguments
**extra_args)
示例7: __init__
def __init__(self, simulation_dir, executable=None, **extra_args):
RetryableTask.__init__(
self,
# actual computational job
GeotopApplication(simulation_dir, executable, **extra_args),
# keyword arguments
**extra_args)
示例8: __init__
def __init__(self, inp_file_path, *other_input_files, **extra_args):
"""Constructor. Interface compatible with `GamessApplication`:class:"""
if extra_args.has_key('tags'):
extra_args['tags'].append('ENV/CPU/OPTERON-2350')
else:
extra_args['tags'] = [ 'ENV/CPU/OPTERON-2350' ]
task = GamessApplication(inp_file_path, *other_input_files, **extra_args)
RetryableTask.__init__(self, task, max_retries=3, **extra_args)
示例9: __init__
def __init__(self, sim_no, executable=None, restart=None, **extra_args):
self.sim_no = sim_no
RetryableTask.__init__(
self,
# actual computational job
GCellJunctionApplication(sim_no, executable, restart, **extra_args),
# keyword arguments
**extra_args)
示例10: __init__
def __init__(self, input_file, **extra_args):
RetryableTask.__init__(
self,
# actual computational job
GmodisApplication(
input_file,
**extra_args),
**extra_args
)
示例11: __init__
def __init__(self, start, extent, gnfs_location, input_files_archive, output, **extra_args):
RetryableTask.__init__(
self,
# actual computational job
CryptoApplication(start, extent, gnfs_location, input_files_archive, output, **extra_args),
# XXX: should decide which policy to use here for max_retries
max_retries = 2,
# keyword arguments
**extra_args)
示例12: __init__
def __init__(self, id_times_filename, **extra_args):
RetryableTask.__init__(
self,
# actual computational job
GnwApplication(
id_times_filename,
**extra_args),
**extra_args
)
示例13: __init__
def __init__(self, edges_data_filename, **extra_args):
RetryableTask.__init__(
self,
# actual computational job
GWeightApplication(
edges_data_filename,
**extra_args),
**extra_args
)
示例14: test_persisted_change
def test_persisted_change():
app = TestApplication()
task = RetryableTask(app)
# task.execution.state = 'RUNNING'
# This is supposed to alter the state of the task
# thus mark it as 'changed'
task.update_state()
# We expect task.changed to be true
assert(task.changed == False)
示例15: __init__
def __init__(self, command, src_dir, result_dir, input_dir, **extra_args):
RetryableTask.__init__(
self,
# actual computational job
GcgpsApplication(
command,
src_dir,
result_dir,
input_dir,
**extra_args),
**extra_args
)