Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
scmperf
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
mercurial
scmperf
Commits
9fa3e4084371
Commit
9fa3e4084371
authored
6 years ago
by
Boris Feld
Browse files
Options
Downloads
Patches
Plain Diff
Add more info when the scheduler see an unknown task type
parent
1cb8bba7dfe9
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scheduler.py
+3
-0
3 additions, 0 deletions
scheduler.py
tests/test-scheduler.t
+28
-0
28 additions, 0 deletions
tests/test-scheduler.t
with
31 additions
and
0 deletions
scheduler.py
+
3
−
0
View file @
9fa3e408
...
...
@@ -95,6 +95,9 @@
run
(
task_arguments
)
elif
task_type
==
"
EXIT
"
:
return
else
:
msg
=
"
Unknown task %s
"
print
(
msg
%
task_type
)
finally
:
LOGGER
.
info
(
"
Ending %r %r
"
,
task_type
,
task_arguments
)
print
(
"
\n
"
*
2
)
...
...
This diff is collapsed.
Click to expand it.
tests/test-scheduler.t
+
28
−
0
View file @
9fa3e408
...
...
@@ -63,3 +63,31 @@
*
Ending
'
RUN
'
'
tip
'
(
glob
)
*
Starting
'
EXIT
'
None
(
glob
)
*
Ending
'
EXIT
'
None
(
glob
)
Test
scheduler
bisect
task
$
cat
<<
EOF
>>
TASKS
>
BISECT
tip
..
tip
~
2
track_startup
>
EXIT
>
EOF
$
python
$TESTDIR
/../sc
heduler
.
py
TASKS
================================================================================
Got
task
'
BISECT
'
'
tip..tip~2 track_startup
'
Unknown
task
BISECT
Removed
task
'
BISECT tip..tip~2 track_startup
'
================================================================================
================================================================================
Got
task
'
EXIT
'
None
Removed
task
'
EXIT
'
================================================================================
Scheduler
should
exit
and
the
TASKS
file
should
be
now
empty
$
cat
TASKS
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