Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
greg
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
it-bott-integrasjoner
greg
Commits
229411a4
Commit
229411a4
authored
3 years ago
by
Andreas Ellewsen
Browse files
Options
Downloads
Patches
Plain Diff
Clean up imports in management commands
parent
23b8e670
No related branches found
No related tags found
1 merge request
!34
Tests/coveragereport
Pipeline
#91581
passed
3 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
greg/management/commands/start_notification_publisher.py
+7
-8
7 additions, 8 deletions
greg/management/commands/start_notification_publisher.py
greg/management/commands/stop_notification_publisher.py
+2
-5
2 additions, 5 deletions
greg/management/commands/stop_notification_publisher.py
with
9 additions
and
13 deletions
greg/management/commands/start_notification_publisher.py
+
7
−
8
View file @
229411a4
import
logging
import
sys
import
json
import
logging
import
signal
import
sys
import
daemon
from
daemon
import
pidfile
import
lockfile
from
django.core.management.base
import
BaseCommand
,
CommandError
from
greg.models
import
Notification
from
greg.api.serializers
import
get_serializer
from
daemon
import
pidfile
from
django.conf
import
settings
from
django.core.management.base
import
BaseCommand
from
pika_context_manager
import
PCM
from
django.conf
import
settings
from
greg.api.serializers
import
get_serializer
from
greg.models
import
Notification
logging
.
config
.
dictConfig
(
settings
.
LOGGING
)
logger
=
logging
.
getLogger
()
...
...
This diff is collapsed.
Click to expand it.
greg/management/commands/stop_notification_publisher.py
+
2
−
5
View file @
229411a4
import
argparse
import
datetime
import
signal
import
os
from
django.core.management.base
import
BaseCommand
,
CommandError
import
signal
from
django.conf
import
settings
from
django.core.management.base
import
BaseCommand
class
Command
(
BaseCommand
):
...
...
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