Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15421936
D21114.id50288.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D21114.id50288.diff
View Options
diff --git a/src/applications/conduit/management/PhabricatorConduitCallManagementWorkflow.php b/src/applications/conduit/management/PhabricatorConduitCallManagementWorkflow.php
--- a/src/applications/conduit/management/PhabricatorConduitCallManagementWorkflow.php
+++ b/src/applications/conduit/management/PhabricatorConduitCallManagementWorkflow.php
@@ -21,6 +21,12 @@
'File to read parameters from, or "-" to read from '.
'stdin.'),
),
+ array(
+ 'name' => 'local',
+ 'help' => pht(
+ 'Force the request to execute in this process, rather than '.
+ 'proxying to another host in the cluster.'),
+ ),
array(
'name' => 'as',
'param' => 'username',
@@ -75,9 +81,17 @@
$params = phutil_json_decode($input_json);
- $result = id(new ConduitCall($method, $params))
- ->setUser($actor)
- ->execute();
+ $call = id(new ConduitCall($method, $params))
+ ->setUser($actor);
+
+ $api_request = $call->getAPIRequest();
+
+ $is_local = $args->getArg('local');
+ if ($is_local) {
+ $api_request->setIsClusterRequest(true);
+ }
+
+ $result = $call->execute();
$output = array(
'result' => $result,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 23, 3:44 AM (7 h, 59 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7328430
Default Alt Text
D21114.id50288.diff (1 KB)
Attached To
Mode
D21114: Provide a "--local" flag to "bin/conduit call" to force in-process execution
Attached
Detach File
Event Timeline
Log In to Comment