-
Notifications
You must be signed in to change notification settings - Fork 358
Backend knowledge tidbits
ExtManagementSystem.validate_credentials_task(???, User.current_user.userid, MiqServer.my_zone)
(???
is whatever ExtManagementSystem.raw_connect?
takes.)
Host#verify_credentials_task(User.current_user.userid, ???)
(???
is whatever Host#verify_credentials
takes.)
MiqTask.generic_action_with_callback({:userid => User.current_user.userid, :action=> 'Just a name'}, {:args=>[], :class_name=> 'SomeKlass', :instance_id => SomeKlass.first.id, :method_name => 'magic', :queue_name => 'generic', :role => 'ems_operations', :zone => MiqServer.my_zone})
simulate_queue_worker
- but any task is executed immediately, regardless of timing
(or see manageiq/Procfile.example
to run actual specific workers)
on error, status is Error, message is the exception message, state is Finished, and the exception class does NOT get saved anywhere
on success, TODO .. results are the result data.