Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
die_coolen_jungs
our_own_cloud_project
Commits
4107273a
Commit
4107273a
authored
12 years ago
by
Jakob Sack
Browse files
Options
Downloads
Patches
Plain Diff
fix license text
parent
088b3ea0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/backgroundjob/regulartask.php
+1
-1
1 addition, 1 deletion
lib/backgroundjob/regulartask.php
lib/backgroundjob/scheduledtask.php
+1
-1
1 addition, 1 deletion
lib/backgroundjob/scheduledtask.php
lib/backgroundjob/worker.php
+8
-8
8 additions, 8 deletions
lib/backgroundjob/worker.php
with
10 additions
and
10 deletions
lib/backgroundjob/regulartask.php
+
1
−
1
View file @
4107273a
<?php
<?php
/**
/**
* ownCloud
- Background Job
* ownCloud
*
*
* @author Jakob Sack
* @author Jakob Sack
* @copyright 2012 Jakob Sack owncloud@jakobsack.de
* @copyright 2012 Jakob Sack owncloud@jakobsack.de
...
...
This diff is collapsed.
Click to expand it.
lib/backgroundjob/scheduledtask.php
+
1
−
1
View file @
4107273a
<?php
<?php
/**
/**
* ownCloud
- Background Job
* ownCloud
*
*
* @author Jakob Sack
* @author Jakob Sack
* @copyright 2012 Jakob Sack owncloud@jakobsack.de
* @copyright 2012 Jakob Sack owncloud@jakobsack.de
...
...
This diff is collapsed.
Click to expand it.
lib/backgroundjob/worker.php
+
8
−
8
View file @
4107273a
<?php
<?php
/**
/**
* ownCloud
- Background Job
* ownCloud
*
*
* @author Jakob Sack
* @author Jakob Sack
* @copyright 2012 Jakob Sack owncloud@jakobsack.de
* @copyright 2012 Jakob Sack owncloud@jakobsack.de
...
@@ -59,12 +59,12 @@ class OC_BackgroundJob_Worker{
...
@@ -59,12 +59,12 @@ class OC_BackgroundJob_Worker{
* with the next step. This method should be used by webcron and ajax
* with the next step. This method should be used by webcron and ajax
* services.
* services.
*/
*/
public
static
function
do
Web
Step
(){
public
static
function
do
Next
Step
(){
$laststep
=
OC_Appconfig
::
getValue
(
'core'
,
'backgroundjob
s
_step'
,
'regular_tasks'
);
$laststep
=
OC_Appconfig
::
getValue
(
'core'
,
'backgroundjob_step'
,
'regular_tasks'
);
if
(
$laststep
==
'regular_tasks'
){
if
(
$laststep
==
'regular_tasks'
){
// get last app
// get last app
$lasttask
=
OC_Appconfig
::
getValue
(
'core'
,
'backgroundjob
s
_task'
,
''
);
$lasttask
=
OC_Appconfig
::
getValue
(
'core'
,
'backgroundjob_task'
,
''
);
// What's the next step?
// What's the next step?
$regular_tasks
=
OC_BackgroundJob_RegularTask
::
all
();
$regular_tasks
=
OC_BackgroundJob_RegularTask
::
all
();
...
@@ -74,7 +74,7 @@ class OC_BackgroundJob_Worker{
...
@@ -74,7 +74,7 @@ class OC_BackgroundJob_Worker{
// search for next background job
// search for next background job
foreach
(
$regular_tasks
as
$key
=>
$value
){
foreach
(
$regular_tasks
as
$key
=>
$value
){
if
(
strcmp
(
$lasttask
,
$key
)
>
0
){
if
(
strcmp
(
$lasttask
,
$key
)
>
0
){
OC_Appconfig
::
getValue
(
'core'
,
'backgroundjob
s
_task'
,
$key
);
OC_Appconfig
::
getValue
(
'core'
,
'backgroundjob_task'
,
$key
);
$done
=
true
;
$done
=
true
;
call_user_func
(
$value
);
call_user_func
(
$value
);
break
;
break
;
...
@@ -83,7 +83,7 @@ class OC_BackgroundJob_Worker{
...
@@ -83,7 +83,7 @@ class OC_BackgroundJob_Worker{
if
(
$done
==
false
){
if
(
$done
==
false
){
// Next time load scheduled tasks
// Next time load scheduled tasks
OC_Appconfig
::
setValue
(
'core'
,
'backgroundjob
s
_step'
,
'scheduled_tasks'
);
OC_Appconfig
::
setValue
(
'core'
,
'backgroundjob_step'
,
'scheduled_tasks'
);
}
}
}
}
else
{
else
{
...
@@ -99,8 +99,8 @@ class OC_BackgroundJob_Worker{
...
@@ -99,8 +99,8 @@ class OC_BackgroundJob_Worker{
}
}
else
{
else
{
// Next time load scheduled tasks
// Next time load scheduled tasks
OC_Appconfig
::
setValue
(
'core'
,
'backgroundjob
s
_step'
,
'regular_tasks'
);
OC_Appconfig
::
setValue
(
'core'
,
'backgroundjob_step'
,
'regular_tasks'
);
OC_Appconfig
::
setValue
(
'core'
,
'backgroundjob
s
_task'
,
''
);
OC_Appconfig
::
setValue
(
'core'
,
'backgroundjob_task'
,
''
);
}
}
}
}
...
...
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