Unless I am missing something obvious, DJCelery the Django admin for celery doesn't allow for a mechanism for a user to launch an adhoc job which seems to be a very useful functionality to allow backend users to launch jobs on a need basis...If this is just missing, would a patch be accepted for it, since it would almost be trivial to implement?
Config: Celery 3.0.21 with Django 1.5
Based on discussions with asksol, currently there is no support in the admin for this..Outlining a process which will hopefully soon be contributed back to the repo.
Define a custom admin for periodic tasks
Add a custom form to the admin, with an additional boolean field for adhoc execution
In the form clean catch the adhoc execution flag from the form, launch the background process and remove flag field from the form
Related
I am new to suite crm and have successfully set it up and is up and running.
The notification system is not working at all and not showing up any alerts.
Here is what I have done
Succesfully setup suite crm and working well
Set up cronjobs on server as mentioned on the admin/ sheduler sections
Repaired scheduler after setting up the scheduler
Tested to see if the notification works or not by setting up the renewal reminder date fields in the contract module but the notification is not showing up.
What am I missing or doing wrong. In the admin/scheduler settings I can see the lists of schedulers. How to know which scheduler will serve my purpose. Is it possible to create new scheduler. I cannot see any options to create a new scheduler.
Make sure you have set properly set permission on server. 755 on all suitecrm files and 777 for cache and custom. After that execute repair and rebuild. Execute any database mismatch query.
After that make sure that "Optimise Advanced OpenDiscovery Index" scheduler is executing without any issue. See following image for reference:
We've finished our first phoenix application for internal company use and it is time now to deploy it. It will be hidden under Apache server (yep, nginx is not available as an option), and according to PCI DSS standard it should be run under readonly user. Node.js devs use some functions like this in their startup configs to change user from 'deployer' which can write to filesystem to 'runner' (readonly user) which just read the code.
So, when my app is starting up after deploy, user should be dynamically changed from 'deploy' to 'runner'. What is the best way to do it? BTW, I'm not completely understood how Cowboy works, but I guess it just runs in the background like unicorn or puma?
I have several scheduled tasks performing different jobs on windows server machine at my current work, but it looks like I'm living this company soon and I have worries about these jobs future after the time when my windows account will be disabled.
Will all gonna be okey with them?
These task's can be run even if you're not there but you have configured that the Task can run "Run whether the user is Logged in or not" or else it is not possible. you can still edit it even after creating it. but I'm not sure it will work even after deleting your account.
How can I create a mongodb procedure that can be scheduled to run once every day, at a fix time, say sharp at midnight GMT?
This google group link says you cannot schedule a task in mongoDB, they have a Jira for this, but you can use Window Task Scheduler which is described in this link. Is this the only way to achieve it? Is this a good way to do it?
Quoting the comment by #Markus,
As written in a different answer, running MongoDB on Windows is a bad idea for various reasons. Under Linux, you could use crond to run a .js file easily. If your requirement is to run MongoDB and have a reliable scheduler, the right tool for the job is Linux.
This answer also mentions the way to solve this.
This is done on Windows the same way you do on Linux.
ONE: Make a script in JavaScript to manage the task. This can be done in other languages if you prefer. This is a JavaScript script to rotate logs.
use admin
db.runCommand( { logRotate : 1 } )
TWO: Create a task in Task Scheduler to run the script. This can be done with the GUI, the API, or in XML. I usually set it up in the GUI and export the XML to allow parameterization of the database server, password, port, and user.
THREE: Include the execution of the script in the task
$MONGO_HOME/Mongo localhost:27017 -u myMongoServiceAccount -p somepassword LogRotate.js
The same concept can be applied to index management, gathering database stats, or managing stale locks.
Hello Folks,
I have a powershell MTA (GUI script using winForms), which works well, lets take the script name to be "ENDUserMTA.ps1" which does invoke certain commands and does something which really needs admin rights. this works fine when run manually or via task scheduler or when set via [registry] RunOnce or Run or whatever when there is admin rights..
The problem is i want to invoke this script on the END users laptop and make them to work with it [interactively]
Options that i have tried so far:
Tried Scheduling the "ENDUserMTA.ps1" in Task Manager SYSTEM account [using When running the task, use the following user account] - this starts and run NOT INTERACTIVE [since system account does not have interactive session]
Tried Scheduling the "ENDUserMTA.ps1" in Task Manager with Different user account which has admin rights [using When running the task, use the following user account] - This again starts but the GUI is not shown to the End User who has logged without admin rights, rather shown to only the user who was set under the option [When running the task, use the following user account]
My situation is not possible to create PSSessions or Delegated Remoting. I am now is middle of forest and no where to go!!!
Not sure how to invoke the script as admin to a user who has logged into a machine without admin rights..
WHat i exactly need or similar solution: When scheduling this script, i schedule the script to start atlogon[any user], after the script completes it will delete the scheduled task
Pls help..
Balaji
Begining on Vista Microsoft has started to separate UI stacks for security reasons.
My advise for your problem is to change the architecture of your code in order to create two scripts.
The first one with no UI will be scheduled with administrative rights
The second one with UI will be started with the user rights and will be a client of the first one.
You can use Inter-Process Communication between the two scripts, but you will met a security issue, you server part vill need particular ACLs to allow the client part to connect.
It exists other way to communicate between scripts, but it's not so easy with an asynchronous UI architecture on one side. It would be simple using managed code (.NET code) or native code(unmanaged code). For me, you are on the limit of the scripting place even if scripting capacities are very large as far as PowerShell is built on the top of .NET.