[katello-devel] setting an async task's type

Tom McKay thomasmckay at redhat.com
Thu Nov 8 21:04:45 UTC 2012


I'm adding an async task for deleting a manifest, similar to what is done to importing a manifest. I can't figure out how to set the "type" of an async task, though.

Here is the code in models/glue/provider.rb where the import task status is created:
https://github.com/Katello/katello/blob/master/src/app/models/glue/provider.rb#L24

The psql table 'task_statuses' has a 'type' column, but I can't figure out how to set/get it.

Help?




More information about the katello-devel mailing list