Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added option to provide arguments to the WebJobs script for triggered WebJobs #1183

Merged
merged 1 commit into from
Jun 3, 2014

Conversation

amitapl
Copy link
Contributor

@amitapl amitapl commented May 30, 2014

It is provided by a query string ?arguments={arguments}.
The arguments are then propagated to the script using command line arguments and also in an environment variable %WEBJOBS_COMMAND_ARGUMENTS%
Fixes #908

/// </summary>
/// <param name="hostPath">path to the host running the script</param>
/// <param name="argumentsFormat">the arguments format passed to the host, {0} is the script file path and {1} are the arguments coming from the user
/// ({1} if not empty will have an extra whitespace at the beginning before the arguments start)</param>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

who add extra space? us or user?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we do, this is to explain why you should do {0}{1} and not {0} {1} as {1} will spart with a whitespace.
Does it makes sense?

… WebJobs

It is provided by a query string ?arguments={arguments}.
The arguments are then propagated to the script using command line arguments and also in an environment variable %WEBJOBS_COMMAND_ARGUMENTS%
Fixes #908
@amitapl amitapl merged commit 838552a into master Jun 3, 2014
@amitapl amitapl deleted the webjobsargs branch June 3, 2014 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WebJobs: Allow passing parameters to a triggered job
2 participants