Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sdo-grading-job-snatcher
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shared
sdo-grading-job-snatcher
Commits
be6d29e1
Commit
be6d29e1
authored
Dec 01, 2025
by
Fredrik Wendt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add grading_on_pause
parent
79f8ce12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
wrapper.py
wrapper.py
+9
-1
No files found.
wrapper.py
View file @
be6d29e1
...
...
@@ -10,7 +10,11 @@ import sys
from
snatcher
import
snatch_grading_work
development_mode
=
os
.
getenv
(
'PYCHARM_HOSTED'
)
url_to_pause
=
"https://etherpad.wendt.io/p/sdo-snatching/export/txt"
def
grading_on_pause
():
url_to_pause
=
"https://etherpad.wendt.io/p/sdo-snatching/export/txt"
status
=
requests
.
get
(
url_to_pause
)
.
text
.
strip
()
return
status
!=
"ON"
def
main
():
log
=
logging
.
getLogger
(
'wrapper'
)
...
...
@@ -75,4 +79,8 @@ def main():
if
__name__
==
"__main__"
:
logging
.
basicConfig
(
level
=
logging
.
INFO
,
stream
=
sys
.
stdout
)
if
grading_on_pause
():
print
(
"Grading is on hold"
)
else
:
print
(
"Grading is not on hold"
)
main
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment