Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scheduling-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
SMASCH
scheduling-system
Commits
d87bc964
Commit
d87bc964
authored
5 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
run cron jobs at time specified in settings
parent
ccc1d9cb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!236
run cron jobs at time specified in settings
Pipeline
#24644
passed
5 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
smash/web/importer/exporter_cron_job.py
+2
-2
2 additions, 2 deletions
smash/web/importer/exporter_cron_job.py
smash/web/importer/importer_cron_job.py
+1
-1
1 addition, 1 deletion
smash/web/importer/importer_cron_job.py
with
3 additions
and
3 deletions
smash/web/importer/exporter_cron_job.py
+
2
−
2
View file @
d87bc964
...
...
@@ -14,8 +14,8 @@ logger = logging.getLogger(__name__)
class
ExporterCronJob
(
CronJobBase
):
RUN_
EVERY_MINUTES
=
60
*
24
schedule
=
Schedule
(
run_
every_mins
=
RUN_EVERY_MINUT
ES
)
RUN_
AT_TIMES
=
getattr
(
settings
,
"
EXPORT_RUN_AT
"
,
[
'
23:55
'
])
schedule
=
Schedule
(
run_
at_times
=
RUN_AT_TIM
ES
)
code
=
'
web.import_daily_job
'
# a unique code
@timeout_decorator.timeout
(
CRON_JOB_TIMEOUT
)
...
...
This diff is collapsed.
Click to expand it.
smash/web/importer/importer_cron_job.py
+
1
−
1
View file @
d87bc964
...
...
@@ -18,7 +18,7 @@ logger = logging.getLogger(__name__)
class
ImporterCronJob
(
CronJobBase
):
RUN_AT_TIMES
=
[
'
23:55
'
]
RUN_AT_TIMES
=
getattr
(
settings
,
"
IMPORT_RUN_AT
"
,
[
'
23:55
'
]
)
schedule
=
Schedule
(
run_at_times
=
RUN_AT_TIMES
)
code
=
'
web.import_daily_job
'
# a unique code
...
...
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