Skip to content

Commit

Permalink
models: add field job_backend_id
Browse files Browse the repository at this point in the history
* job_backend_id stores job id for a specific backend
  (K8s, HTCondor, Slurm and etc.)
  Connects reanahub/reana-job-controller/issues/118

Signed-off-by: Rokas Maciulaitis <[email protected]>
  • Loading branch information
Rokas Maciulaitis authored and roksys committed Apr 1, 2019
1 parent a071ae7 commit d418550
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reana_db/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,9 @@ class Job(Base, Timestamp):

id_ = Column(UUIDType, unique=True, primary_key=True,
default=generate_uuid)
backend_job_id = Column(String(256))
workflow_uuid = Column(UUIDType)
status = Column(String(30))
status = Column(Enum(JobStatus), default=JobStatus.created)
backend = Column(String(30))
cvmfs_mounts = Column(Text)
shared_file_system = Column(Boolean)
Expand Down

0 comments on commit d418550

Please sign in to comment.