Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beat.web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
beat
beat.web
Commits
2004405b
There was a problem fetching the pipeline summary.
Commit
2004405b
authored
8 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[scripts] Make process and scheduler scripts more portable
parent
6f2c3b6e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!194
Scheduler
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
beat/web/scripts/process.py
+1
-1
1 addition, 1 deletion
beat/web/scripts/process.py
beat/web/scripts/scheduler.py
+1
-1
1 addition, 1 deletion
beat/web/scripts/scheduler.py
with
2 additions
and
2 deletions
beat/web/scripts/process.py
+
1
−
1
View file @
2004405b
...
...
@@ -92,7 +92,7 @@ def main(user_input=None):
if
arguments
[
'
--verbose
'
]
==
1
:
logger
.
setLevel
(
logging
.
INFO
)
elif
arguments
[
'
--verbose
'
]
>=
2
:
logger
.
setLevel
(
logging
.
DEBUG
)
from
beat.web
.backend.models
import
JobSplit
,
Result
from
.
.backend.models
import
JobSplit
,
Result
try
:
split
=
JobSplit
.
objects
.
get
(
pk
=
int
(
arguments
[
'
<split>
'
]))
...
...
This diff is collapsed.
Click to expand it.
beat/web/scripts/scheduler.py
+
1
−
1
View file @
2004405b
...
...
@@ -100,7 +100,7 @@ def main(user_input=None):
signal
.
signal
(
signal
.
SIGTERM
,
handler
)
signal
.
signal
(
signal
.
SIGINT
,
handler
)
from
beat.web
.backend
import
schedule
from
.
.backend
import
schedule
timing
=
int
(
arguments
[
'
--period
'
])
\
if
arguments
[
'
--period
'
]
else
settings
.
SCHEDULING_INTERVAL
...
...
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