diff options
Diffstat (limited to 'extensions/PhabBugz/lib/Constants.pm')
-rw-r--r-- | extensions/PhabBugz/lib/Constants.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/extensions/PhabBugz/lib/Constants.pm b/extensions/PhabBugz/lib/Constants.pm index 2fd8613a0..1692f8fb9 100644 --- a/extensions/PhabBugz/lib/Constants.pm +++ b/extensions/PhabBugz/lib/Constants.pm @@ -18,12 +18,14 @@ our @EXPORT = qw( PHAB_CONTENT_TYPE PHAB_FEED_POLL_SECONDS PHAB_USER_POLL_SECONDS + PHAB_GROUP_POLL_SECONDS ); use constant PHAB_ATTACHMENT_PATTERN => qr/^phabricator-D(\d+)/; use constant PHAB_AUTOMATION_USER => 'phab-bot@bmo.tld'; use constant PHAB_CONTENT_TYPE => 'text/x-phabricator-request'; -use constant PHAB_FEED_POLL_SECONDS => 5; -use constant PHAB_USER_POLL_SECONDS => 60; +use constant PHAB_FEED_POLL_SECONDS => $ENV{PHAB_FEED_POLL} // 5; +use constant PHAB_USER_POLL_SECONDS => $ENV{PHAB_USER_POLL} // 60; +use constant PHAB_GROUP_POLL_SECONDS => $ENV{PHAB_GROUP_POLL} // 300; 1; |