def monitor_paraview_job(task, cluster, job, *args, **kwargs): task.logger.info('Monitoring job on cluster.') girder_token = task.taskflow.girder_token task.taskflow.on_complete(monitor_job) \ .run(upload_output.s(cluster, job, *args, **kwargs)) task.taskflow.run_task( monitor_job.s(cluster, job, girder_token=girder_token))
def monitor_paraview_job(task, cluster, job, *args, **kwargs): task.logger.info('Monitoring job on cluster.') girder_token = task.taskflow.girder_token task.taskflow.on_complete(monitor_job) \ .run(upload_output.s(cluster, job, *args, **kwargs)) task.taskflow.run_task( monitor_job.s(cluster, job, girder_token=girder_token))
def monitor_open_foam_job(task, cluster, job, *args, **kwargs): task.logger.info('Monitoring job on cluster.') # Move to next task when monitor job is done task.taskflow \ .on_complete(monitor_job) \ .run(upload_output.s(cluster, job, *args, **kwargs)) # Monitor job in a loop manner task.taskflow.run_task( monitor_job.s(cluster, job, girder_token=task.taskflow.girder_token))