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

Support command line parameters to support custom workflow #856

Closed
ascobie opened this issue Nov 13, 2017 · 3 comments
Closed

Support command line parameters to support custom workflow #856

ascobie opened this issue Nov 13, 2017 · 3 comments

Comments

@ascobie
Copy link
Member

ascobie commented Nov 13, 2017

There was a discussion on emails over the weekend about supporting command line parameters, so we can have customized workflows for various NCJ related features. I have included the basic conversation flow from the emails, with any external names and companies removed:

conversation.docx

I looked into passing parameters into the exe. It looks like we could pass them into the application from here"

const batchLabsApp = new BatchLabsApplication(autoUpdater, process.argv);

Which could in turn pass off to a command line launcher to set up the state of the application and any behind the scenes actions.

The main premise seemed to be, pass in as much information as required to automatically upload any required assets and submit a job on behalf of the user. Then to automatically redirect to the job details UI.

We could log any dynamic workflow like so:

BatchLabs started with create job request
Parameter validation OK
Discovering assets ...
Uploading 10/100 assets (10%)
Uploading 11/100 assets (11%)
Submitting job '' with auto-pool
Job submission complete
Launching job details view for job: ''

@ascobie
Copy link
Member Author

ascobie commented Nov 13, 2017

After talking with Dave, rather than fully automated job submission as outlined above, we pre-populate all the relevant fields/info so the user can refine before uploading and submitting.

For asset uploads, we could have a new template section that you can use an existing file group or enter the name of a new one, select the directories you want to upload, your main job asset file, then click create and it will upload it for you.

@timotheeguerin
Copy link
Member

I think for this one actually we should go more towards this using links and custom protocol #934
That way you don't need to know where batchlabs is installed or have it available in the path.

@ascobie
Copy link
Member Author

ascobie commented Feb 28, 2018

Closing as have just implemented setting up a NCJ job template via the protocol handler.

@ascobie ascobie closed this as completed Feb 28, 2018
@timotheeguerin timotheeguerin added this to the 0.14.0 milestone Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants