Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
allgo
allgo
Commits
7982242d
Commit
7982242d
authored
Jun 20, 2018
by
BAIRE Anthony
Browse files
fix the type of Job.container_id
(this is a docker container id, not a foreign key)
parent
06807c69
Changes
1
Show whitespace changes
Inline
Side-by-side
django/allgo/main/models.py
View file @
7982242d
...
...
@@ -346,6 +346,7 @@ class Job(TimeStampModel):
access_token
=
models
.
CharField
(
max_length
=
255
,
blank
=
True
,
null
=
True
)
state
=
models
.
IntegerField
(
choices
=
JOB_STATE_CHOICES
,
default
=
NEW
)
result
=
models
.
IntegerField
(
choices
=
JOB_RESULT_CHOICES
,
default
=
NONE
)
container_id
=
models
.
CharField
(
max_length
=
64
,
null
=
True
)
# docker container id
# Relationships
queue
=
models
.
ForeignKey
(
JobQueue
,
related_name
=
"job_queue"
)
...
...
@@ -354,9 +355,6 @@ class Job(TimeStampModel):
runner
=
models
.
ForeignKey
(
Runner
,
related_name
=
"runner"
,
blank
=
True
,
null
=
True
)
# Not in use because I don't have any related table yet
container_id
=
models
.
IntegerField
(
blank
=
True
,
null
=
True
)
class
Meta
:
db_table
=
'dj_jobs'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment