Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Roman Karwacik
website
Commits
5343837e
Commit
5343837e
authored
7 years ago
by
Julian Rother
Browse files
Options
Downloads
Patches
Plain Diff
Forgot to move date_json_handler
parent
3bfa3abe
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
jobs.py
+0
-3
0 additions, 3 deletions
jobs.py
server.py
+4
-0
4 additions, 0 deletions
server.py
with
4 additions
and
3 deletions
jobs.py
+
0
−
3
View file @
5343837e
...
@@ -73,9 +73,6 @@ def jobs_api_token_required(func):
...
@@ -73,9 +73,6 @@ def jobs_api_token_required(func):
return
func
(
*
args
,
**
kwargs
)
return
func
(
*
args
,
**
kwargs
)
return
decorator
return
decorator
def
date_json_handler
(
obj
):
return
obj
.
isoformat
()
if
hasattr
(
obj
,
'
isoformat
'
)
else
obj
@sched_func
(
10
)
@sched_func
(
10
)
def
jobs_catch_broken
():
def
jobs_catch_broken
():
# scheduled but never pinged
# scheduled but never pinged
...
...
This diff is collapsed.
Click to expand it.
server.py
+
4
−
0
View file @
5343837e
...
@@ -474,6 +474,10 @@ def job_handler(*types, state='finished'):
...
@@ -474,6 +474,10 @@ def job_handler(*types, state='finished'):
return
func
return
func
return
wrapper
return
wrapper
def
date_json_handler
(
obj
):
return
obj
.
isoformat
()
if
hasattr
(
obj
,
'
isoformat
'
)
else
obj
def
schedule_job
(
jobtype
,
data
=
None
,
priority
=
0
):
def
schedule_job
(
jobtype
,
data
=
None
,
priority
=
0
):
if
not
data
:
if
not
data
:
data
=
{}
data
=
{}
...
...
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