Skip to content

Commit 46c8fcf

Browse files
authored
Add visibility modifier for constants
1 parent 0972919 commit 46c8fcf

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

app/code/Magento/Cron/Observer/ProcessCronQueueObserver.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,59 +34,59 @@ class ProcessCronQueueObserver implements ObserverInterface
3434
/**#@+
3535
* Cache key values
3636
*/
37-
const CACHE_KEY_LAST_SCHEDULE_GENERATE_AT = 'cron_last_schedule_generate_at';
37+
public const CACHE_KEY_LAST_SCHEDULE_GENERATE_AT = 'cron_last_schedule_generate_at';
3838

39-
const CACHE_KEY_LAST_HISTORY_CLEANUP_AT = 'cron_last_history_cleanup_at';
39+
public const CACHE_KEY_LAST_HISTORY_CLEANUP_AT = 'cron_last_history_cleanup_at';
4040

4141
/**
4242
* Flag for internal communication between processes for running
4343
* all jobs in a group in parallel as a separate process
4444
*/
45-
const STANDALONE_PROCESS_STARTED = 'standaloneProcessStarted';
45+
public const STANDALONE_PROCESS_STARTED = 'standaloneProcessStarted';
4646

4747
/**#@-*/
4848

4949
/**#@+
5050
* List of configurable constants used to calculate and validate during handling cron jobs
5151
*/
52-
const XML_PATH_SCHEDULE_GENERATE_EVERY = 'schedule_generate_every';
52+
public const XML_PATH_SCHEDULE_GENERATE_EVERY = 'schedule_generate_every';
5353

54-
const XML_PATH_SCHEDULE_AHEAD_FOR = 'schedule_ahead_for';
54+
public const XML_PATH_SCHEDULE_AHEAD_FOR = 'schedule_ahead_for';
5555

56-
const XML_PATH_SCHEDULE_LIFETIME = 'schedule_lifetime';
56+
public const XML_PATH_SCHEDULE_LIFETIME = 'schedule_lifetime';
5757

58-
const XML_PATH_HISTORY_CLEANUP_EVERY = 'history_cleanup_every';
58+
public const XML_PATH_HISTORY_CLEANUP_EVERY = 'history_cleanup_every';
5959

60-
const XML_PATH_HISTORY_SUCCESS = 'history_success_lifetime';
60+
public const XML_PATH_HISTORY_SUCCESS = 'history_success_lifetime';
6161

62-
const XML_PATH_HISTORY_FAILURE = 'history_failure_lifetime';
62+
public const XML_PATH_HISTORY_FAILURE = 'history_failure_lifetime';
6363

6464
/**#@-*/
6565

6666
/**
6767
* Value of seconds in one minute
6868
*/
69-
const SECONDS_IN_MINUTE = 60;
69+
public const SECONDS_IN_MINUTE = 60;
7070

7171
/**
7272
* How long to wait for cron group to become unlocked
7373
*/
74-
const LOCK_TIMEOUT = 60;
74+
public const LOCK_TIMEOUT = 60;
7575

7676
/**
7777
* Static lock prefix for cron group locking
7878
*/
79-
const LOCK_PREFIX = 'CRON_';
79+
public const LOCK_PREFIX = 'CRON_';
8080

8181
/**
8282
* Timer ID for profiling
8383
*/
84-
const CRON_TIMERID = 'job %s';
84+
public const CRON_TIMERID = 'job %s';
8585

8686
/**
8787
* Max retries for acquire locks for cron jobs
8888
*/
89-
const MAX_RETRIES = 5;
89+
public const MAX_RETRIES = 5;
9090

9191
/**
9292
* @var ScheduleCollection

0 commit comments

Comments
 (0)