Closed diegodelemos closed 5 years ago
Quick fix:
diff --git a/reana_workflow_engine_serial/utils.py b/reana_workflow_engine_serial/utils.py
index ac91246..0e1d0c3 100644
--- a/reana_workflow_engine_serial/utils.py
+++ b/reana_workflow_engine_serial/utils.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of REANA.
-# Copyright (C) 2018 CERN.
+# Copyright (C) 2018, 2019 CERN.
#
# REANA is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
@@ -55,7 +55,7 @@ def build_job_spec(image, command, workflow_workspace, mount_cvmfs):
workflow_workspace, escape_shell_arg(command)),
"prettified_cmd": command,
"workflow_workspace": workflow_workspace,
- "job_name": command,
+ "job_name": command[:255],
"cvmfs_mounts": []
}
if mount_cvmfs:
Solved via https://github.com/reanahub/reana-db/pull/27
Since we are not yet allowing to name each command of a workflow, we use the command itself to name the job. This causes an unhandled exception when name (aka command) is bigger than the specified maximum in REANA DB models.
Job spec inside r-w-e-serial:
Logs from job controller.