Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Commits
5dd759ac
Commit
5dd759ac
authored
4 years ago
by
Nathan Hertz
Browse files
Options
Downloads
Patches
Plain Diff
WorkflowEvent: changed job_id to condor_job_id and added
workflow_request_id field
parent
8f316806
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
shared/workspaces/src/workspaces/schema.py
+6
-3
6 additions, 3 deletions
shared/workspaces/src/workspaces/schema.py
with
6 additions
and
3 deletions
shared/workspaces/src/workspaces/schema.py
+
6
−
3
View file @
5dd759ac
...
...
@@ -90,8 +90,9 @@ class WorkflowEvent:
def
__init__
(
self
,
workflow_request_id
:
int
,
job_name
:
str
,
job_id
:
str
,
condor_
job_id
:
str
,
event_type
:
WorkflowEventType
,
timestamp
:
str
,
log
:
str
,
...
...
@@ -99,8 +100,9 @@ class WorkflowEvent:
):
# NOTE: when you modify the properties here, also update the schema
# in the .json package.
self
.
workflow_request_id
=
workflow_request_id
self
.
job_name
=
job_name
self
.
job_id
=
str
(
job_id
)
self
.
condor_
job_id
=
str
(
condor_
job_id
)
self
.
type
=
event_type
self
.
timestamp
=
timestamp
self
.
log
=
log
...
...
@@ -108,6 +110,7 @@ class WorkflowEvent:
def
json
(
self
)
->
str
:
d
=
{
"
workflow_request_id
"
:
self
.
workflow_request_id
,
"
job_name
"
:
self
.
job_name
,
"
type
"
:
str
(
self
.
type
),
"
timestamp
"
:
self
.
timestamp
,
...
...
@@ -125,7 +128,7 @@ class WorkflowEvent:
def
__eq__
(
self
,
other
):
return
(
self
.
job_name
==
other
.
job_name
and
self
.
job_id
==
other
.
job_id
and
self
.
condor_
job_id
==
other
.
condor_
job_id
and
self
.
type
==
other
.
type
and
self
.
timestamp
==
other
.
timestamp
and
self
.
log
==
other
.
log
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment